---
title: "Delete Agent"
method: DELETE
path: "/api/v1/agents/{id}"
tags: ["Agents"]
---

# Delete Agent

`DELETE /api/v1/agents/{id}`

Delete an existing agent and clean up associated resources (including icon from R2 storage)

## Path parameters

- `id` string, required — The unique identifier

## Response `200`

Agent deleted successfully

- AgentDeleteResponse
  - `message` string, required

## Other responses

- `401` — Unauthorized - authentication required
- `403` — Forbidden - not the owner or admin
- `404` — Agent not found
- `500` — Internal server error

## Changes

- **2026-01-21** `ba253fbf08a7` — 1 info
  - added the non-success response with the status `403`
- **2026-01-18** `b0e6563d3fce` — 3 breaking, 3 warning, 1 info
  - the `code` response property const value `INTERNAL_SERVER_ERROR` was removed for the status `500`
  - the `code` response property const value `NOT_FOUND` was removed for the status `404`
  - the `code` response property const value `UNAUTHORIZED` was removed for the status `401`
  - added the new `INTERNAL_SERVER_ERROR` enum value to the `code` response property for the response status `500`
  - …3 more
- **2026-01-17** `4f3d96fe2656` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/corespeed-io/apis/mcp-store-api/changes/api/v1/agents/:id/delete.md)

---

[API](https://skmtc.dev/corespeed-io/apis/mcp-store-api.md) · [All operations](https://skmtc.dev/corespeed-io/apis/mcp-store-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corespeed-io/mcp-store-api/revisions/25721894961a/schema)
