delete_identity
Delete an identity by ID. Returns the deleted identity.
Instructions
Delete an identity by ID. Returns the deleted identity.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identityId": "<identityId>"
},
"name": "delete_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identityId | Yes | The ID of the identity to delete |
Implementation Reference
- src/tools/deleteIdentity.ts:1-13 (schema)Zod schema and type definition for the delete_identity tool. Requires identityId (string).
import { z } from "zod"; import { getClient } from "../admina-api.js"; export const DeleteIdentitySchema = z.object({ identityId: z.string().describe("The ID of the identity to delete"), }); export type DeleteIdentityParams = z.infer<typeof DeleteIdentitySchema>; export async function deleteIdentity(params: DeleteIdentityParams) { const client = getClient(); return client.makeDeleteApiCall(`/identity/${params.identityId}`); } - src/tools/deleteIdentity.ts:10-13 (handler)The handler function that executes the delete logic by making a DELETE API call to /identity/{identityId}.
export async function deleteIdentity(params: DeleteIdentityParams) { const client = getClient(); return client.makeDeleteApiCall(`/identity/${params.identityId}`); }