delete functionality to api