check if the http method is DELETE