adding implementation to DELETE api call