---
title: "POST /agents/delete"
method: POST
path: "/agents/delete"
tags: ["agents"]
---

# POST /agents/delete

`POST /agents/delete`

Deletes an agent by id.

## Headers

- `X-Phantombuster-Org` string

## Request body

- object
  - `id` string, required — Id of the agent to delete.

## Response `200`

Agent deleted successfully.

## Other responses

- `400` — Agent not found.
- `403` — Agent is currently running and could not be deleted.

---

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