---
title: "Delete an agent"
method: DELETE
path: "/agents/{agentId}"
tags: ["agents"]
---

# Delete an agent

`DELETE /agents/{agentId}`

Deletes a single agent

## Path parameters

- `agentId` string, required — Agent ID

## Query parameters

- `environmentId` string — Environment ID

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Response `200`

Response with status 200

- TypeCommonsSuccess — Informs whether or not a request was successful
  - `data` TypeCommonsSuccessData
    - `success` boolean, required

## Other responses

- `400` — Error response with status 400
- `404` — Error response with status 404

## Changes

- **2026-08-22** `72646e863872` — 1 info
  - `query` request parameter `environmentId` was deprecated

[Change history](https://skmtc.dev/flatfile/apis/api-reference/changes/agents/:agentId/delete.md)

---

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