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

# deleteDinoAiAgentDefinition

> Deletes a DinoAI agent definition in the workspace the key targets: a workspace key's own, or the one in the `X-Paradime-Workspace` header. An agent another agent delegates to can't be deleted. Needs `dinoai:admin:write`.



**mutation** `deleteDinoAiAgentDefinition(input: DeleteDinoAiAgentDefinitionInput!): DeleteDinoAiAgentDefinitionPayload!`

## Arguments

**`input`**: `DeleteDinoAiAgentDefinitionInput!` (required)

The agent to delete.

## Returns

`DeleteDinoAiAgentDefinitionPayload!`

**`deletedSlug`**: `String!`

The slug of the deleted agent, free to reuse.

## Examples

```graphql Mutation
mutation DeleteDinoAiAgentDefinition($input: DeleteDinoAiAgentDefinitionInput!) {
  deleteDinoAiAgentDefinition(input: $input) {
    deletedSlug
  }
}
```

```json Variables
{
  "input": {
    "slug": "string"
  }
}
```

```json Response
{
  "data": {
    "deleteDinoAiAgentDefinition": {
      "deletedSlug": "string"
    }
  }
}
```


## Related topics

- [Administration API: DinoAI](https://docs.paradime.io/developers/graphql-api/admin-api/dinoai.md)
- [Admin client: DinoAI](https://docs.paradime.io/developers/python-sdk/modules/admin/dinoai.md)
- [PR reviewer with the DinoAI GitHub Action](https://docs.paradime.io/guides/programmable-agents/github-action-pr-reviewer.md)
- [Automate with AI agents](https://docs.paradime.io/guides/programmable-agents/index.md)
- [DinoAI](https://docs.paradime.io/products/dino-ai/index.md)


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