We use this expression to say we have changed our minds about something or don't want/need help with something.
Are you busy? Can I ask you a question?
Make it quick - I'm busy.
Ok, forget it.
You said you wanted to buy my bike. Ok - $300.
$300 for that? Forget it!