> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Agent

> Delete an agent and all its memories.

## Overview

Deletes the agent **and all its memories**. On Memanto Cloud memories can't be kept without their agent. This can't be undone. Only the agent's owner can delete it. Deletion finishes in the background: until it does, [List Agents](https://docs.memanto.ai/cloud/api/agents/list-agents.md) shows the agent with `status: "deleting"`.

## Authentication

**x-api-key** `string` *required*

Your Memanto Cloud API key (`mk_...`). See [Authentication](https://docs.memanto.ai/cloud/api/introduction.md#authentication).

## Path Parameters

**agent\_id** `string` *required*

The agent's ID.

```bash cURL theme={null}
curl -X DELETE "https://api.memanto.ai/agents/my-agent" \
  -H "x-api-key: $MEMANTO_API_KEY"
```

```json 200 - OK theme={null}
{
  "message": "Agent 'my-agent' successfully deleted with all your memories"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.