Delete function created