'staff_1', 'requestData' => [ 'userId' => [ 'validation' => DataValidator::dataStoreId('user'), 'error' => ERRORS::INVALID_USER ] ] ]; } public function handler() { $userId = Controller::request('userId'); $user = User::getDataStore($userId); $user->delete(); Response::respondSuccess(); } }