vault_delete
Delete a secret from HashiCorp Vault at a specified path to remove sensitive data and maintain security.
Instructions
Delete a secret from Vault at the specified path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to delete the secret from (e.g., 'secret/data/myapp') |
Implementation Reference
- src/index.ts:159-170 (handler)Handler implementation for the vault_delete tool. Extracts the path from arguments, calls vaultClient.delete(path), and returns a success message.case "vault_delete": { const { path } = args as { path: string }; await vaultClient.delete(path); return { content: [ { type: "text", text: `Successfully deleted secret at path: ${path}`, }, ], }; }
- src/index.ts:77-90 (registration)Registration of the vault_delete tool in the TOOLS array, defining its name, description, and input schema requiring a 'path' string.{ name: "vault_delete", description: "Delete a secret from Vault at the specified path", inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to delete the secret from (e.g., 'secret/data/myapp')", }, }, required: ["path"], }, },
- src/index.ts:80-89 (schema)Input schema for vault_delete tool, specifying an object with required 'path' property of type string.inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to delete the secret from (e.g., 'secret/data/myapp')", }, }, required: ["path"], },