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

# Delete Slide

Delete a slide from a presentation. This is a synchronous operation.

## Path Parameters

| Parameter         | Type   | Description               |
| ----------------- | ------ | ------------------------- |
| `presentation_id` | string | ID of the presentation    |
| `slide_id`        | string | ID of the slide to delete |

***

## Response

```json theme={null}
{
  "success": true
}
```

***

## Example

```bash theme={null}
curl -X DELETE "https://slides-api.getalai.com/api/v1/presentations/xyz789-.../slides/slide123-..." \
  -H "Authorization: Bearer YOUR_API_KEY"
```

***

## Error Responses

| Status | Description                              |
| ------ | ---------------------------------------- |
| 400    | Slide doesn't belong to the presentation |
| 401    | Invalid or missing API key               |
| 404    | Presentation or slide not found          |

<Warning>
  This action is permanent. Deleted slides cannot be recovered.
</Warning>


## OpenAPI

````yaml DELETE /api/v1/presentations/{presentation_id}/slides/{slide_id}
openapi: 3.1.0
info:
  title: Alai API
  description: API endpoints for programmatic access to Alai presentation generation
  version: 1.0.0
servers:
  - url: https://slides-api.getalai.com
security:
  - BearerAuth: []
paths:
  /api/v1/presentations/{presentation_id}/slides/{slide_id}:
    delete:
      tags:
        - External API
      summary: Delete a slide from a presentation
      operationId: >-
        delete_slide_api_v1_presentations__presentation_id__slides__slide_id__delete
      parameters:
        - name: presentation_id
          in: path
          required: true
          schema:
            type: string
            title: Presentation Id
        - name: slide_id
          in: path
          required: true
          schema:
            type: string
            title: Slide Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSlideResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeleteSlideResponse:
      properties:
        success:
          type: boolean
          title: Success
      type: object
      required:
        - success
      title: DeleteSlideResponse
    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:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your Alai API key. Get one from your account settings at app.getalai.com

````