Added Delete API and Exception Handling.