Clean Up History, PublishQueue, and EventQueue tables in Sitecore

Many of the Sitecore developers might have come across this scenario where the size of the History or EventQueue or PublishQueue will be growing super fast. As a result, the entire site might become slow...