Destroy player

I want to be able to destroy the player and remove it from my web page.