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

# Delete a Preset

> Delete a saved preset.

```bash theme={null}
curl -X DELETE https://api.spidra.io/api/presets/15415447-7680-4dc5-90a0-f7a900c7f418 \
  -H "Authorization: Bearer $SPIDRA_API_KEY"
```

```json theme={null}
{ "status": "success", "message": "Preset deleted successfully" }
```

Runs already made from the preset stay in your history. If a [monitor](https://docs.spidra.io/monitors.md) watches the preset, its checks fail until you change its sources.


## OpenAPI

````yaml DELETE /presets/{presetId}
openapi: 3.1.0
info:
  title: Spidra API
  version: 1.0.0
  description: >-
    Public API endpoints for web scraping via Spidra. Authenticate with
    `Authorization: Bearer YOUR_API_KEY`.
servers:
  - url: https://api.spidra.io/api
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /presets/{presetId}:
    delete:
      tags:
        - Presets
      summary: Delete a Preset
      description: >-
        Deletes a preset. Checks of a monitor that watches it fail until you
        change that monitor's sources.
      parameters:
        - name: presetId
          in: path
          required: true
          schema:
            type: string
          description: The preset's ID.
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No preset with this ID on your account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
      required:
        - status
        - message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.