getUser($request))) { throw new AuthorizationFailedException(); } $resource->delete(); return $this->getCodeResponse(204); } }