One line should be enough:
Competition.find(params[:id]).destroy