delete method, middleware