> ## 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 Scenarios

> Delete one or more scenarios owned by the API key's user. Deleting a scenario also deletes its hosted links.

Delete one or more scenarios you own. Deleting a scenario also deletes its hosted links.

Request body:

```json theme={null}
{
  "ids": ["11111111-2222-3333-4444-555555555555"]
}
```


## OpenAPI

````yaml openapi/akapulu.json POST /scenarios/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:
  /scenarios/delete:
    post:
      tags:
        - Scenarios
      summary: Delete scenarios
      description: >-
        Delete one or more scenarios owned by the API key's user. Deleting a
        scenario also deletes its hosted links.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdsRequest'
            examples:
              default:
                value:
                  ids:
                    - 11111111-2222-3333-4444-555555555555
      responses:
        '200':
          description: Scenarios deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteScenariosResponse'
              examples:
                success:
                  value:
                    status: deleted
                    deleted_count: 1
                    config_ids:
                      - 11111111-2222-3333-4444-555555555555
        '400':
          description: Invalid request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                default:
                  value:
                    error: config_ids are required
        '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: Scenarios not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                default:
                  value:
                    error: ConversationConfigs not found
components:
  schemas:
    IdsRequest:
      type: object
      required:
        - ids
      properties:
        ids:
          type: array
          items:
            type: string
            format: uuid
          description: IDs to delete.
    DeleteScenariosResponse:
      type: object
      required:
        - status
        - deleted_count
        - config_ids
      properties:
        status:
          type: string
        deleted_count:
          type: integer
        config_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

````