Add a method for DELETE. Extract common code from POST to a new class method.