The best way to get rid of ants from electrical outlet is by using ant bait. Direct spray using natural insecticide works if done directly onto the ant nest.
The best way to get rid of carpenter ants is baiting. Place baits around the carpenter ants. They will pick up and share the bait with nestmates, poisoning and killing the whole colony. You can also trace them back to the nest, and treat the infested wood. Fix water leaks to keep wood structures dry.
To get rid of imported fire ants, sprinkle baits around the mound when the fire ants are actively foraging. Do this when the ground is dry and it is not going to rain. It takes a week to months to eliminate the colony depending on the product used. To prevent infestation, broadcast baits in late spring or fall to kill young colonies.
Ants can be a nuisance, but they don't have to be. This article provides practical DIY ant control methods that you can use to get rid of ants easily and safely.