---
title: "Delete a flow"
method: DELETE
path: "/flow/{id}"
tags: ["flow"]
---

# Delete a flow

`DELETE /flow/{id}`

Deletes a flow. Upon success, it returns the ID of the deleted flow.

## Path parameters

- `id` number, required

## Query parameters

- `api_key` string, required

## Response `200`

ID of the deleted flow

- object
  - `flow_delete` InlineResponse2008FlowDelete
    - `id` string — ID of the deleted flow, a positive integer

## Other responses

- `412` — Precondition failed. An error code and message are returned. 320 - Please provide API key. In order to remove your content, please authenticate. 321 - Authentication failed. The API key was not valid. Please try to login again, or contact api administrators. 322 - Flow does not exists. The flow ID could not be linked to an existing flow. 323 - Flow is not owned by you. The flow is owned by another user. Hence you cannot delete it. 324 - Flow is in use by other content. Can not be deleted. The flow is used in runs, evaluations or as a component of another flow. Delete other content before deleting this flow. 325 - Deleting flow failed. Deleting the flow failed. Please contact support team.

---

[API](https://skmtc.net/openml/apis/openml-api.md) · [All operations](https://skmtc.net/openml/apis/openml-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openml/openml-api/versions/263d3d6ee586/schema)
