delete_agent
Delete an agent account: revokes all its API keys, removes memberships, unassigns its tasks, then hard-deletes the user. When history rows (messages/activity) block the hard delete, the agent is deactivated instead (zero access, row kept) and status='deactivated' is returned. Requires organization owner/admin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_username | Yes | Username of the agent to delete. | |
| namespace_slug | Yes | Namespace slug of the organization. |