Recruiting the wrong person & firing someone for the first time

Ever have to fire someone before? Wondering what is the best way to fire someone? My own experiences of hiring the wrong person for a job and having to fire them at short notice. Learn from my mistakes to do it better yourself.