> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# deleteAgent

GraphQL MUTATION

Soft-deletes an agent by stamping `deletedAt`.
The agent document itself is preserved (not removed) so its history remains
available, but it disappears from every read path immediately.

Reference: https://docs.credal.com/api-reference/mutations/delete-agent

## GraphQL Schema

```graphql
mutation ExampleMutation($request: DeleteAgentRequest!) {
  deleteAgent(request: $request)
}
```

## Variables

```json
{
  "request": {
    "agentId": "example"
  }
}
```