MCPcopy Create free account
hub / github.com/ShipSecAI/studio / deleteWorkflow

Function deleteWorkflow

e2e-tests/cleanup.ts:45–58  ·  view source on GitHub ↗

* Delete a workflow (and all its runs)

(workflowId: string, workflowName: string)

Source from the content-addressed store, hash-verified

43 * Delete a workflow (and all its runs)
44 */
45async function deleteWorkflow(workflowId: string, workflowName: string) {
46 const res = await fetch(`${API_BASE}/workflows/${workflowId}`, {
47 method: 'DELETE',
48 headers: HEADERS,
49 });
50
51 if (res.ok) {
52 console.log(` ✓ Deleted: ${workflowName}`);
53 } else if (res.status === 404) {
54 console.warn(` ⊘ Not found: ${workflowName} (already deleted)`);
55 } else {
56 console.warn(` ✗ Failed to delete: ${workflowName} (${res.status})`);
57 }
58}
59
60/**
61 * Main cleanup function

Callers 1

cleanupFunction · 0.85

Calls 2

fetchFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected