Skip to main content
POST
/
flows
/
bulk_delete
Bulk Delete Flows
curl --request POST \
  --url https://api.example.com/flows/bulk_delete \
  --header 'Content-Type: application/json' \
  --data '
{
  "flows": {
    "operator": "and_",
    "id": {
      "any_": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "not_any_": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    },
    "deployment": {
      "operator": "and_",
      "is_null_": true
    },
    "name": {
      "any_": [
        "my-flow-1",
        "my-flow-2"
      ],
      "like_": "marvin"
    },
    "tags": {
      "operator": "and_",
      "all_": [
        "tag-1",
        "tag-2"
      ],
      "is_null_": true
    }
  },
  "limit": 50
}
'
{
  "deleted": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}

Headers

x-prefect-api-version
string

Body

application/json
flows
FlowFilter · object

Filter criteria for flows to delete

limit
integer
default:50

Maximum number of flows to delete. Defaults to 50.

Required range: 1 <= x <= 50

Response

Successful Response

Response from bulk flow deletion.

deleted
string<uuid>[]