delete_user
Remove a user from TeamRetro by specifying their email address. This action ensures user data is permanently deleted from the system for retrospective management.
Instructions
Delete a user by email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | string |
Implementation Reference
- src/features/users/tools.ts:63-64 (handler)The handler function for the 'delete_user' tool, which wraps the usersService.deleteUser call with createToolResponse.handler: async (args: { email: string }) => createToolResponse(usersService.deleteUser(args.email)),
- src/features/users/tools.ts:59-61 (schema)Input schema definition for the 'delete_user' tool using Zod, requiring a validated email.schema: z.object({ email: emailSchema, }),
- src/tools.ts:13-22 (registration)Central registration where userTools (containing 'delete_user') is merged into the main tools object for schema and handler generation.const tools = { ...userTools, ...teamTools, ...teamMembersTools, ...actionTools, ...retrospectiveTools, ...agreementTools, ...healthModelTools, ...healthCheckTools, };
- src/features/users/service.ts:57-59 (helper)Core helper function in usersService that performs the actual DELETE API request to /v1/users/{email}.async deleteUser(email: string): Promise<SingleApiResponse<any>> { return this.delete<SingleApiResponse<any>>(`/v1/users/${email}`); }
- src/schemas/generic.ts:27-27 (schema)Reusable Zod schema for email strings, referenced in the 'delete_user' tool schema.export const emailSchema = z.string().email().describe("email");