delete_workflow
Permanently delete a workflow by ID using the Agentled MCP Server. This action cannot be undone, removing workflows from the AI orchestration platform.
Instructions
Permanently delete a workflow by ID. This cannot be undone.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow ID to delete |
Implementation Reference
- src/tools/workflows.ts:129-145 (handler)Tool definition and handler for 'delete_workflow', which delegates to the client's deleteWorkflow method.
server.tool( 'delete_workflow', 'Permanently delete a workflow by ID. This cannot be undone.', { workflowId: z.string().describe('The workflow ID to delete'), }, async ({ workflowId }, extra) => { const client = clientFactory(extra); const result = await client.deleteWorkflow(workflowId); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } ); - src/client.ts:111-113 (handler)The underlying client implementation that performs the HTTP DELETE request to remove the workflow.
async deleteWorkflow(id: string) { return this.request(`/workflows/${id}`, { method: 'DELETE' }); }