---
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

- `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 thisflow.
- `325` — Deleting flow failed. Deleting the flow failed. Please contact support team.

## Changes

- **2018-01-17** `2209d99ea36e` — 7 info
  - added the non-success response with the status `320`
  - added the non-success response with the status `321`
  - added the non-success response with the status `322`
  - added the non-success response with the status `323`
  - …3 more

[Change history](https://skmtc.dev/openml/apis/openml-api/changes/flow/:id/delete.md)

---

[API](https://skmtc.dev/openml/apis/openml-api.md) · [All operations](https://skmtc.dev/openml/apis/openml-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openml/openml-api/revisions/4df86fe63217/schema)
