delete_identity
Delete an identity by ID. Returns the deleted identity.
Instructions
Delete an identity by ID. Returns the deleted 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}`); } - src/index.ts:183-187 (registration)Registration of the 'delete_identity' tool with description and input schema in the tool list.
{ name: "delete_identity", description: "Delete an identity by ID. Returns the deleted identity.", inputSchema: zodToJsonSchema(DeleteIdentitySchema), }, - src/index.ts:310-311 (registration)Handler mapping that routes the 'delete_identity' tool to the deleteIdentity function, parsing input via DeleteIdentitySchema.
update_identity: async (input) => updateIdentity(UpdateIdentitySchema.parse(input)), delete_identity: async (input) => deleteIdentity(DeleteIdentitySchema.parse(input)),