how to add delete button in contract

Hi All,

I would like to have delete button in contract. Appreciate that if anyone can advice

thanks in advance