curl --request DELETE \
  --url https://api.frigade.com/v1/flows/:numericFlowId \
  --header 'Authorization: Bearer <token>'

The flows DELETE endpoint allows you to update a Flow’s Configuration as well as its metadata. Deleting a Flow is irreversible and will remove all data associated with the Flow, including all responses and metadata.

As this endpoint is destructive, you will need to use the private API key.

Only call this endpoint from your backend code.

Updating a Flow

Before being able to delete a Flow, you should make a GET request to obtain the Flow’s private metadata as well as the Flow’s numeric ID (this is a number and is different from the publicly available slug (e.g. flow_GzXC2fHz). The reason for this is that different versions of the Flow share the same slug but have different numeric IDs to differentiate them.

curl -i -X DELETE \
   -H "Authorization:Bearer api_private_ngq2pTswZ0Zydh8OthABmkne2o6HJeCnHNYVcFtHCLwmtxUNcSu2UgH0cJ5FQPVi" \
   -H "Content-Type:application/json" \
 'https://api.frigade.com/v1/flows/757'