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