---
title: "Delete Agent"
method: DELETE
path: "/api/v2/agents/{agent_id}"
tags: ["Sessions & Agents"]
---

# Delete Agent

`DELETE /api/v2/agents/{agent_id}`

Delete agent

Always deletes local agent metadata.
If `delete-backup-too=true`, also deletes the agent memory namespace in Moorcheh.

## Path parameters

- `agent_id` string, required

## Query parameters

- `delete-backup-too` boolean — Delete Moorcheh namespace backup

## Headers

- `authorization` string, nullable
- `X-Api-Key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/moorcheh-ai/apis/memanto-memory-that-ai-agents-love.md) · [All operations](https://skmtc.net/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moorcheh-ai/memanto-memory-that-ai-agents-love/revisions/ff157f2fc5d5/schema)
