---
title: "remove an agent with its memory, keys, hook and ledger (not while it has sub-agents)"
method: DELETE
path: "/v1/agents/{agent}"
tags: ["agents"]
---

# remove an agent with its memory, keys, hook and ledger (not while it has sub-agents)

`DELETE /v1/agents/{agent}`

## Request

- Base URL: `https://innernet.live/api`
- URL: `https://innernet.live/api/v1/agents/{agent}`
- Auth: HTTP bearer

Requires the `write` scope.

## Path parameters

- `agent` string, required

## Response `200`

OK

- object

## Other responses

- `401`: Error
- `403`: Error
- `429`: Error

---

[API](https://skmtc.dev/innernet/apis/innernet-api.md) · [All operations](https://skmtc.dev/innernet/apis/innernet-api/llms.txt) · [OpenAPI document](https://skmtc.dev/innernet/apis/innernet-api/revisions/1ee09aec71a9?raw)
