---
title: "Delete an agent"
method: DELETE
path: "/api/workflows"
tags: ["Agents"]
---

# Delete an agent

`DELETE /api/workflows`

## Request

- Base URL: `https://platform.ultralytics.com`
- URL: `https://platform.ultralytics.com/api/workflows`
- Auth: HTTP bearer

Moves an agent to trash and cancels its active runs.

## Query parameters

- `owner` string
- `id` string, required

## Response `200`

Agent deleted

- DeleteAgentResponse
  - `success` true, required

## Other responses

- `400`: Invalid agent ID
- `401`: Missing or invalid authentication
- `403`: Workspace editor access required
- `404`: Agent not found
- `429`: Rate limit exceeded

## Changes

- **2026-10-01** `9da7270119bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ultralytics/apis/ultralytics-platform-api/changes/api/workflows/delete.md)

---

[API](https://skmtc.dev/ultralytics/apis/ultralytics-platform-api.md) - [All operations](https://skmtc.dev/ultralytics/apis/ultralytics-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ultralytics/apis/ultralytics-platform-api/revisions/9c562e23b0e4?raw)
