Delete user
keycloak_user_deletePermanently deletes a Keycloak user after verifying the username matches the user ID and receiving explicit confirmation.
Instructions
Destructive write that permanently removes a user from the realm, returning "User "" deleted." on success or a "Not deleted: " message otherwise. As a wrong-target guard, the supplied username must match the user that the id resolves to, and confirm must be true; otherwise the deletion is blocked. Look up the id and username with keycloak_user_get or keycloak_user_search first. Not reversible; consider keycloak_user_set_enabled to disable instead of deleting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The Keycloak user id (UUID) of the account to delete. Required; obtain it from keycloak_user_search. | |
| confirm | No | Must be true to proceed; if omitted or false, the deletion is blocked pending confirmation. Optional; defaults to false. | |
| username | Yes | The username of the same account, used as a safety check: it must match the user that id resolves to or the deletion is refused. Required. |