delete_user
Remove or disassociate a user from a Zoom account by providing their user ID or email. Supports permanent deletion or account disassociation via the Zoom API MCP Server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Delete action (delete: permanently delete, disassociate: disassociate from account) | |
| user_id | Yes | The user ID or email address |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"action": {
"description": "Delete action (delete: permanently delete, disassociate: disassociate from account)",
"enum": [
"delete",
"disassociate"
],
"type": "string"
},
"user_id": {
"description": "The user ID or email address",
"type": "string"
}
},
"required": [
"user_id",
"action"
],
"type": "object"
}
Implementation Reference
- src/tools/users.js:95-109 (handler)The handler function that performs the actual deletion by calling the Zoom API DELETE endpoint `/users/${user_id}` with the specified action, handling success and error responses.handler: async ({ user_id, action }) => { try { const response = await zoomApi.delete(`/users/${user_id}`, { params: { action } }); return { content: [{ type: "text", text: "User deleted successfully" }] }; } catch (error) { return handleApiError(error); } }
- src/tools/users.js:91-94 (schema)Zod schema for input validation of delete_user tool parameters: user_id (string) and action (enum ["delete", "disassociate"]).schema: { user_id: z.string().describe("The user ID or email address"), action: z.enum(["delete", "disassociate"]).describe("Delete action (delete: permanently delete, disassociate: disassociate from account)") },
- src/server.js:47-47 (registration)Registers the usersTools array to the MCP server, which includes the delete_user tool among others.registerTools(usersTools);