Sorry seems to be the hardest word

Generally my son is good (well all parents think their children are good. But Alhamdulillah (All praise to the Almighty) he is quite a good child. He has his moments now and again where he has a tantrum but every child does, I know a few adults that still have them sometimes.
He is just over 2 and a half now but he loves to help around the house, whether it's cooking his own egg, or making his own cereal, to cleaning up, watering the plants, and even putting the washing in the machine and then hanging it out after. Right now while I'm typing this, he has the fly swatter in his hand trying to catch the fly, or as he says "kill it!".
So yes, he is a very good boy Maa Shaa Allah (All praise the Almighty) and when he wants something, he will go out of his way to always put away his toys and neaten up his play area. But on the other hand, when he doesn't want to do something or just wants to not listen, he can switch off completely.
The other night, we had reprimanded him for something and he started throwing a tantrum, it lasted quite some time. Each time he wouldn't listen and continued his crying and screaming we would take one of his favourite toys and put it out of his reach so he couldn't play with them. He continued this behaviour and refused to apologise for something he knew was wrong which resulted in a huge loss of his toy collection.
By the end of the night, he realised he needed to sleep and was exhausted from all the crying and screaming and trying to stop us from taking his toys away, when he eventually just came and hugged us both, gave us a kiss and said sorry.
How do you deal with your child's tantrums?
Do you have a naughty mat or leave them in a room?
Do you hit your child?
Do you just let them be?
Do you take away their toys, books or sweets?
