That's a very useful expression when you don't want to do something. But it is kind of rude, so don't say it to your teachers or boss, only your friends, To hell with that!
A. Do you want to go shopping? B. To hell with that! A. oh... sorry.
"To hell with..." is literally a curse, it means "Send ... to hell." The same as "God damn it" means, God, please damn (condemn, curse, send to hell) this object.
But yes, as GJ said, "Fuck that" can be used interchangably with "To hell with that"
A. Lets study English slang.
B. To hell with that! (To hell with that idea, plan, etc.)