# Delete a preset

Source: https://amanucci.com/fr/docs/developers/api/people/deletePreset

## POST /v1/me/presets/{presetId}/delete

Delete a preset

Delete a preset of yours, at once: it leaves `listPresets`, and its id is free again, so creating it under the same id, name and state brings it back as it was (Undo). Answers the preset it deleted. Another person's id, or none, or one already deleted, is 404. The caller's own, by session or API key; takes no hat.

Operation ID: `deletePreset`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid",
      "description": "One of your presets."
    },
    "required": true,
    "description": "One of your presets.",
    "name": "presetId",
    "in": "path"
  }
]
```

### Responses

#### 200 Deleted: the preset as it stood.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/Preset"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
