completed implementation of delete action on API
added a few required status codes