added delete keyword to api controller