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

# Archive a rubric

> 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.



## OpenAPI

````yaml https://api.sgp.scale.com/openapi-versions/v5/openapi.json delete /v5/rubrics/{rubric_id}
openapi: 3.1.0
info:
  title: EGP API V5
  description: >-
    This is the parent API for all EGP APIs. If you are looking for the EGP API,
    please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
  - url: https://api.egp.scale.com
security: []
paths:
  /v5/rubrics/{rubric_id}:
    delete:
      tags:
        - Rubrics
      summary: Archive a rubric
      description: >-
        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.
      operationId: DELETE-V5-/v5/rubrics/rubric_id
      parameters:
        - name: rubric_id
          in: path
          required: true
          schema:
            title: Rubric Id
            type: string
        - name: x-selected-account-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Account ID Header
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse_RubricResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    DeleteResponse_RubricResponse_:
      properties:
        id:
          type: string
          title: Id
        object:
          type: string
          const: rubric
          title: Object
          default: rubric
        deleted:
          type: boolean
          title: Deleted
      type: object
      required:
        - id
        - deleted
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          title: Error Type
          type: string
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````