delete_runbook
Remove a runbook by specifying its name to manage and organize your runbook operations effectively on the MCP Runbook server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- runbook_server.py:62-72 (handler)The main handler function for the 'delete_runbook' tool. It is registered via the @mcp.tool() decorator. Deletes the runbook file by name using the search engine and removes it from the filesystem.@mcp.tool() async def delete_runbook(name: str) -> str: r = store.get_runbook_by_name(name) file_path = os.path.join(conf.runbooks_dir, r) if os.path.exists(file_path): os.remove(file_path) search_engine.create_index() return "Deleted the runbook"