Delete pipelines
delete_pipelinesDelete pipelines from the account for good, up to 50 per call, in two steps. First call it with pipelineIds alone: nothing is deleted, and it returns willDelete (names, and which are published or on a schedule), cannotDelete with the reason (locked, or a run still in flight), notFound, and a confirmToken. Show the person what would go and wait for their yes; it cannot be undone. Then call again with the confirmToken and the willDelete ids (or fewer): only ids that preview showed are deleted, each checked again, and the token expires after 15 minutes. Use it when the person asks to delete or clean up pipelines, or when a create is refused at the 500-pipeline limit and they agree to clear space. Never pick pipelines to delete on your own: match them by name in list_pipelines and let the person choose. A deleted pipeline's schedule stops and its published API endpoint goes away; the images and videos its runs made stay in the library. Needs the pipelines:write scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pipelineIds": "<pipelineIds>"
},
"name": "delete_pipelines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipelineIds | Yes | Pipeline ids from list_pipelines. | |
| confirmToken | No | From the preview call, only after the person has said yes to its willDelete list. Omit to preview. |