If you're very careful you can remove heat with electromagnetic energy.
Think of heat like someone on a rope swing, and electromagnetic energy as a push.
If you time, and angle your pushes very carefully you can slow the person on the swing. But it's much easier to speed them up. Same with electromagnetic energy.
You can get "freezers" that will put part of their inside down to 250+c below their surroundings. (Helium cryocoolers)