Delete User
Description
Deletes an existing AttackForge user. This is a write operation, and a soft delete: the user record is kept, the account is blocked and stops appearing in the normal user listings, and every access token the user holds is revoked, so any session they have is ended and they cannot sign in again. It is reversible - restore_user brings the account back.
The shape of args is declared inline (see Building args for Write Tools), so no preparatory call is needed. A deleted user is hidden from find_users and count_users unless include_deleted is set.
Preconditions: the caller must be an administrator, the target cannot be the calling user, and the last remaining active administrator cannot be deleted. On success the user id is returned together with an updated flag.
How To Enable
Go to
UsersSelect the user you would like to provide access to this tool
Click on
Access > MCPClick on
Add ToolsSelect the tool
delete_userand clickAdd
Example Prompts
Delete the user jane.smith@example.com.
Remove Bob's account - he has left the company.
Delete every client user that has never logged in.
Parameters
args
object
Yes
The user-deletion payload - see the keys below.
args keys:
user_id
string
Yes
Id (24-hex) of the user to delete. Source: find_users. The calling user cannot be deleted, and neither can the last remaining active administrator.
updatedistruewhen the user was actually deleted by this call.falsemeans the call succeeded but changed nothing because the user was already deleted - it is not an error and the call should not be retried.
Example Response
Last updated