add the delete function by id