delete method for API wrapper

Added a delete method for the API wrapper