adding delete method to rest api