added delete method for api