# Archive a lesson type

> Archives, never deletes: bookings and purchases keep pointing at it. Needs a `catalog:write` token.

```json
{
  "/api/v1/lesson-types/{id}": {
    "delete": {
      "operationId": "archiveLessonType",
      "tags": [
        "Lesson types"
      ],
      "summary": "Archive a lesson type",
      "description": "Archives, never deletes: bookings and purchases keep pointing at it. Needs a `catalog:write` token.",
      "security": [
        {
          "bearerAuth": []
        }
      ],
      "responses": {
        "200": {
          "description": "Archived.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LessonType"
              }
            }
          }
        },
        "401": {
          "description": "Missing, unknown, revoked or expired token.",
          "content": {
            "application/problem+json": {
              "schema": {
                "$ref": "#/components/schemas/Problem"
              }
            }
          }
        },
        "403": {
          "description": "The token's scope does not allow this request.",
          "content": {
            "application/problem+json": {
              "schema": {
                "$ref": "#/components/schemas/Problem"
              }
            }
          }
        },
        "404": {
          "description": "The school has no such lesson type.",
          "content": {
            "application/problem+json": {
              "schema": {
                "$ref": "#/components/schemas/Problem"
              }
            }
          }
        }
      }
    }
  }
}
```
