---
title: "Delete a preset"
method: DELETE
path: "/presets/{slug}"
tags: ["Presets"]
---

# Delete a preset

`DELETE /presets/{slug}`

## Request

- Base URL: `https://openrouter.ai/api/v1`
- URL: `https://openrouter.ai/api/v1/presets/{slug}`
- Auth: HTTP bearer

Archives a preset: it no longer resolves for inference and is hidden from get and list. The preset and its versions are kept, so the slug stays taken; restore it with `POST /presets/{slug}/restore`. Deleting an already-archived preset succeeds again. A disabled preset returns 409. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected. `workspace_id` may be sent as a query parameter or a JSON body field.

## Path parameters

- `slug` string, required: URL-safe slug identifying the preset.

## Query parameters

- `workspace_id` string, uuid: Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.

## Response `200`

The archived preset with its designated version.

- GetPresetResponse: A preset with its currently designated version.
  - `data` PresetWithDesignatedVersion, required: A preset with its currently designated version.
    - [`Preset`](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4/schema?at=%2Fcomponents%2Fschemas%2FPreset)
    - object
      - `designated_version` PresetDesignatedVersion, nullable, required: A specific version of a preset, containing config and optional system prompt.
        - `config` object, required
        - `created_at` string, required
        - `creator_id` string, required
        - `id` string, required
        - `preset_id` string, required
        - `system_prompt` string, nullable, required
        - `updated_at` string, required
        - `version` integer, required

## Other responses

- `400`: Bad Request - Invalid request parameters or malformed input
- `401`: Unauthorized - Authentication required or invalid credentials
- `403`: Forbidden - Authentication successful but insufficient permissions
- `404`: Not Found - Resource does not exist
- `409`: Conflict - Resource conflict or concurrent modification
- `500`: Internal Server Error - Unexpected server error

## Changes

- **2026-11-09** `ac5e476d6286`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/presets/:slug/delete.md)

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) - [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4?raw)
