# Remove role from user **DELETE /api/users/{userId}/roles/{roleId}** Remove an API resource role from the user. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **userId** (string) The unique identifier of the user. - **roleId** (string) The unique identifier of the role. ## Responses ### 204: The API resource role has been removed from the user. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: Not Found [Powered by Bump.sh](https://bump.sh)