Deleted function

Added the delete function of the api