Add delete function

Add delete function