## Archive a rubric

`rubrics.archive(strrubric_id)  -> RubricArchiveResponse`

**delete** `/v5/rubrics/{rubric_id}`

Archive a rubric (soft delete).

This is a soft delete, not a permanent one: it records an archived timestamp on
the rubric while retaining the rubric and its version history, so it can later
be brought back via the restore variant of the update endpoint. An archived
rubric is hidden from the list endpoint but stays retrievable by id. The
rubric's criteria are left untouched — archiving does not cascade to or delete
them. Archiving a rubric that is already archived is rejected.

### Parameters

- `rubric_id: str`

### Returns

- `class RubricArchiveResponse: …`

  - `id: str`

  - `deleted: bool`

  - `object: Optional[Literal["rubric"]]`

    - `"rubric"`

### Example

```python
import os
from scale_gp_beta import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
response = client.rubrics.archive(
    "rubric_id",
)
print(response.id)
```

#### Response

```json
{
  "id": "id",
  "deleted": true,
  "object": "rubric"
}
```
