delete_plugin_metadata
Remove plugin metadata from the APISIX-MCP server by specifying the plugin name, ensuring streamlined backend configuration and resource management.
Instructions
Delete plugin metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | plugins name |
Implementation Reference
- src/tools/plugin.ts:55-57 (handler)Inline handler function for the 'delete_plugin_metadata' tool. It performs a DELETE request to the admin API endpoint `/plugin_metadata/${name}`.server.tool("delete_plugin_metadata", "Delete plugin metadata", DeletePluginMetadataSchema.shape, async (args) => { return await makeAdminAPIRequest(`/plugin_metadata/${args.name}`, "DELETE"); });
- src/schemas/plugin.ts:24-26 (schema)Zod schema for input validation of the 'delete_plugin_metadata' tool, requiring a 'name' string.export const DeletePluginMetadataSchema = z.object({ name: z.string().describe("plugins name"), });
- src/tools/plugin.ts:55-57 (registration)Registration of the 'delete_plugin_metadata' tool on the MCP server, including description, input shape from schema, and inline handler.server.tool("delete_plugin_metadata", "Delete plugin metadata", DeletePluginMetadataSchema.shape, async (args) => { return await makeAdminAPIRequest(`/plugin_metadata/${args.name}`, "DELETE"); });