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

# Delete Endpoints

> Delete one or more HTTP endpoints. Delete is blocked if a scenario still references the endpoint.

Delete one or more HTTP endpoints you own.

Request body:

```json theme={null}
{
  "ids": ["22222222-3333-4444-5555-666666666666"]
}
```

Delete is rejected if a scenario still references the endpoint.


## OpenAPI

````yaml openapi/akapulu.json POST /endpoints/delete
openapi: 3.1.0
info:
  title: Akapulu Labs API
  version: 1.0.0
  description: Public Akapulu Labs API reference.
servers:
  - url: https://akapulu.com/api
security:
  - bearerAuth: []
paths:
  /endpoints/delete:
    post:
      tags:
        - Endpoints
      summary: Delete endpoints
      description: >-
        Delete one or more HTTP endpoints. Delete is blocked if a scenario still
        references the endpoint.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdsRequest'
            examples:
              default:
                value:
                  ids:
                    - 22222222-3333-4444-5555-666666666666
      responses:
        '200':
          description: Endpoints deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteEndpointsResponse'
              examples:
                success:
                  value:
                    status: deleted
                    deleted_count: 1
                    endpoint_ids:
                      - 22222222-3333-4444-5555-666666666666
        '400':
          description: Invalid request or endpoint in use
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                missing_ids:
                  value:
                    error: endpoint_ids are required
                in_use:
                  value:
                    error: >-
                      Cannot delete endpoints
                      22222222-3333-4444-5555-666666666666 in use by
                      conversation configs Sales Qualification
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                invalid_key:
                  value:
                    error: Invalid API key
        '404':
          description: Endpoints not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                default:
                  value:
                    error: Endpoints not found
components:
  schemas:
    IdsRequest:
      type: object
      required:
        - ids
      properties:
        ids:
          type: array
          items:
            type: string
            format: uuid
          description: IDs to delete.
    DeleteEndpointsResponse:
      type: object
      required:
        - status
        - deleted_count
        - endpoint_ids
      properties:
        status:
          type: string
        deleted_count:
          type: integer
        endpoint_ids:
          type: array
          items:
            type: string
            format: uuid
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````