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

# Delete Agent Endpoint

> Permanently delete an agent.


This endpoint performs a hard delete of an agent. The operation is irreversible and removes agent configuration, history, and usage data.


**Path Parameters:**

- `agent_id`: Unique identifier of the agent to delete


**Returns:**

- `agent_id`: ID of the deleted agent
- `message`: Success confirmation message


**Raises:**

- `404`: Agent not found or doesn't belong to the user


**Example Request:**

```json
DELETE /api/v3/agents/agent-abc123
Headers: {"Authorization": "Bearer <api_key>"}
```


**Example Response:**

```json
{
  "agent_id": "agent-abc123",
  "message": "Successfully deleted agent agent-abc123"
}
```


**Warning:**

This is a permanent deletion. All agent data including configuration, history, and usage statistics will be removed and cannot be recovered.



## OpenAPI

````yaml https://api.nugen.in/openapi-public.json delete /api/v3/agents/{agent_id}
openapi: 3.1.0
info:
  title: Nugen Intelligence API
  description: 'Nugen Intelligence : Powering Specialized Intelligence At Scale'
  version: 25.4.20
servers: []
security: []
paths:
  /api/v3/agents/{agent_id}:
    delete:
      tags:
        - Agents
      summary: Delete Agent Endpoint
      description: >-
        Permanently delete an agent.



        This endpoint performs a hard delete of an agent. The operation is
        irreversible and removes agent configuration, history, and usage data.



        **Path Parameters:**


        - `agent_id`: Unique identifier of the agent to delete



        **Returns:**


        - `agent_id`: ID of the deleted agent

        - `message`: Success confirmation message



        **Raises:**


        - `404`: Agent not found or doesn't belong to the user



        **Example Request:**


        ```json

        DELETE /api/v3/agents/agent-abc123

        Headers: {"Authorization": "Bearer <api_key>"}

        ```



        **Example Response:**


        ```json

        {
          "agent_id": "agent-abc123",
          "message": "Successfully deleted agent agent-abc123"
        }

        ```



        **Warning:**


        This is a permanent deletion. All agent data including configuration,
        history, and usage statistics will be removed and cannot be recovered.
      operationId: delete_agent
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
      responses:
        '200':
          description: >-
            Returns a confirmation message indicating successful deletion of the
            agent along with the agent ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DeleteResponse:
      properties:
        agent_id:
          type: string
          title: Agent Id
          description: Agent identifier
          example: agent-123
        message:
          type: string
          title: Message
          description: Response Message
          example: Agent deleted successfully
      type: object
      required:
        - agent_id
        - message
      title: DeleteResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````