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

# Delete an agent

> Permanently delete an agent, including its draft and published settings, actions and skills. Built-in nuwacom system agents cannot be deleted.



## OpenAPI

````yaml /openapi.yaml delete /api/v1/spaces/{spaceId}/agents/{agentId}
openapi: 3.1.0
info:
  title: Nuwacom API
  description: API for Nuwacom application
  version: 1.0.0
servers:
  - url: https://{customer-tenant}.nuwacom.ai
    description: Nuwacom API
security:
  - bearerAuth: []
paths:
  /api/v1/spaces/{spaceId}/agents/{agentId}:
    delete:
      tags:
        - Agents
      summary: Delete an agent
      description: >-
        Permanently delete an agent, including its draft and published settings,
        actions and skills. Built-in nuwacom system agents cannot be deleted.
      operationId: deleteApiV1SpacesBySpaceIdAgentsByAgentId
      parameters:
        - in: path
          name: spaceId
          schema:
            anyOf:
              - type: string
                minLength: 2
                maxLength: 6
              - type: string
                minLength: 21
                maxLength: 21
            description: ID of the space the agent belongs to.
          required: true
        - in: path
          name: agentId
          schema:
            type: string
            format: uuid
            description: Unique ID of the agent.
          required: true
      responses:
        '204':
          description: Agent deleted successfully.
        '403':
          description: >-
            The caller lacks permission to delete agents in this space, or the
            agent is a system agent.
        '404':
          description: Agent not found in the provided space.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````