user_delete
Delete a user account from the Pickaxe platform by specifying their email address. This tool removes user data across multiple studio environments including PRODUCTION, STAGING, DEV, and MAIN.
Instructions
Delete a user by email.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| studio | No | Studio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION | |
| Yes | The user's email address to delete |
Implementation Reference
- src/index.ts:559-567 (handler)The execution handler for the 'user_delete' tool. It constructs the API endpoint /studio/user/{email} and performs a DELETE request using the shared pickaxeRequest helper, returning the JSON response.case "user_delete": { const result = await pickaxeRequest( `/studio/user/${encodeURIComponent(args.email as string)}`, "DELETE", undefined, studio ); return JSON.stringify(result, null, 2); }
- src/index.ts:361-375 (registration)The tool registration entry in the 'tools' array. This defines the tool's name, description, and input schema (including optional 'studio' parameter and required 'email'). The 'tools' array is returned by the ListTools handler.{ name: "user_delete", description: "Delete a user by email.", inputSchema: { type: "object", properties: { studio: studioParam, email: { type: "string", description: "The user's email address to delete", }, }, required: ["email"], }, },
- src/index.ts:364-374 (schema)Input schema for the 'user_delete' tool, specifying the parameters: optional 'studio' (references shared studioParam) and required 'email' string.inputSchema: { type: "object", properties: { studio: studioParam, email: { type: "string", description: "The user's email address to delete", }, }, required: ["email"], },