delete_snapshot
Remove specific workflow snapshots to manage storage when limits are reached. Use list_snapshots to identify which snapshots to delete.
Instructions
Delete a specific config snapshot. Use list_snapshots to find snapshot IDs. Useful for freeing up space when the snapshot limit is reached.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow ID | |
| snapshotId | Yes | The snapshot ID to delete (from list_snapshots) |
Implementation Reference
- src/client.ts:154-159 (handler)The actual API client method that sends the DELETE request to delete a snapshot.
async deleteSnapshot(workflowId: string, snapshotId: string) { return this.request(`/workflows/${workflowId}/snapshots`, { method: 'DELETE', body: JSON.stringify({ snapshotId }), }); } - src/tools/workflows.ts:242-260 (registration)MCP tool registration and handler implementation for 'delete_snapshot'.
server.tool( 'delete_snapshot', `Delete a specific config snapshot. Use list_snapshots to find snapshot IDs. Useful for freeing up space when the snapshot limit is reached.`, { workflowId: z.string().describe('The workflow ID'), snapshotId: z.string().describe('The snapshot ID to delete (from list_snapshots)'), }, async ({ workflowId, snapshotId }, extra) => { const client = clientFactory(extra); const result = await client.deleteSnapshot(workflowId, snapshotId); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } );