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

# Delete agent

> Delete a custom agent. The agent disappears from every list and its triggers stop. Platform agents (`gumball`, `analytics`) cannot be deleted.

Team API keys are not accepted on this endpoint.




## OpenAPI

````yaml delete /agents/{agent_id}
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.gumloop.com/api/v1
security: []
paths:
  /agents/{agent_id}:
    delete:
      tags:
        - Agents
      summary: Delete agent
      description: >
        Delete a custom agent. The agent disappears from every list and its
        triggers stop. Platform agents (`gumball`, `analytics`) cannot be
        deleted.


        Team API keys are not accepted on this endpoint.
      operationId: deleteAgent
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            type: string
          description: ID of a custom agent.
      responses:
        '200':
          description: The delete result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  agent_id:
                    type: string
                    example: abc123DEFghiJKL
                  deleted:
                    type: boolean
                    example: true
        '400':
          description: '`agent_not_customizable` — platform agents cannot be deleted.'
        '401':
          description: Unauthorized — missing or invalid API key, or a team API key.
        '403':
          description: Forbidden — the caller does not have delete access to this agent.
        '404':
          description: Agent not found.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >
            curl -X DELETE
            'https://api.gumloop.com/api/v1/agents/abc123DEFghiJKL' \
              -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
        - lang: python
          label: Python
          source: |
            from gumloop import Gumloop

            client = Gumloop(access_token="YOUR_ACCESS_TOKEN")

            client.agents.delete("abc123DEFghiJKL")
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A personal API key or an [OAuth 2.0](/api-reference/oauth) access token.
        Personal API keys also require the `x-auth-key` header with your user
        ID.

````