Skip to main content
Glama

delete-secret

Remove secrets from SecureCode's encrypted vault using soft delete for recovery options. Specify secret name and optional tags to identify and delete stored credentials securely.

Instructions

Delete a secret (soft delete, can be recovered)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the secret to delete
tagsNoFilter tags to disambiguate same-name secrets

Implementation Reference

  • The implementation of the 'delete-secret' tool, which calls getClient().deleteSecret(name, tags) and returns a success or error message.
    // Tool: delete-secret
    server.tool(
      'delete-secret',
      'Delete a secret (soft delete, can be recovered)',
      {
        name: z.string().describe('The name of the secret to delete'),
        tags: z.record(z.string(), z.string()).optional().describe('Filter tags to disambiguate same-name secrets'),
      },
      async ({ name, tags }) => {
        try {
          await getClient().deleteSecret(name, tags);
          return wrapResponse([{ type: 'text', text: `Secret "${name}" deleted successfully` }]);
        } catch (error) {
          return errorResult(error);
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/juanisidoro/securecode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server