adding delete to api