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

# List and delete

```bash theme={null}
curl "https://app.diagramkit.ai/api/v1/diagrams?limit=5" -H "Authorization: Bearer $DIAGRAMKIT_KEY"
# {"diagrams": [{"id", "title", "status", "versions", "origin", "created_at", "updated_at"}, …]}

curl -X DELETE https://app.diagramkit.ai/api/v1/diagrams/DIAGRAM_ID -H "Authorization: Bearer $DIAGRAMKIT_KEY"
# {"deleted": true}
```

Deleting removes the diagram, every version and every file made from it. It cannot be undone.


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