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

# List recently-deleted metrics

> List the organization's soft-deleted metrics still within the recovery window, newest first. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.



## OpenAPI

````yaml /api-reference/v1/metrics-v1.yaml get /metrics/recently-deleted
openapi: 3.0.3
info:
  title: Coval Metrics API
  version: 1.0.0
  description: |
    Manage custom evaluation metrics for agent testing and monitoring.
  contact:
    name: Coval API Support
    email: support@coval.dev
    url: https://docs.coval.ai
  license:
    name: Proprietary
    url: https://coval.dev/terms
servers:
  - url: https://api.coval.dev/v1
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: Metrics
    description: CRUD operations for custom evaluation metrics
paths:
  /metrics/recently-deleted:
    get:
      tags:
        - Metrics
      summary: List recently-deleted metrics
      description: >-
        List the organization's soft-deleted metrics still within the recovery
        window, newest first. Each entry carries who deleted it, when, and when
        it will be permanently purged. Built-in metrics are non-deletable and
        never appear.
      operationId: listRecentlyDeletedMetrics
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRecentlyDeletedMetricsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ListRecentlyDeletedMetricsResponse:
      type: object
      description: Response for GET /v1/metrics/recently-deleted (newest first)
      required:
        - metrics
      properties:
        metrics:
          type: array
          items:
            $ref: '#/components/schemas/RecentlyDeletedMetricResource'
    RecentlyDeletedMetricResource:
      type: object
      description: >-
        A soft-deleted metric in the Recently Deleted list, with its purge
        countdown.
      required:
        - name
        - id
        - metric_name
      properties:
        name:
          type: string
          description: Resource name
          example: metrics/abc123def456ghi789jklm
        id:
          type: string
          description: Metric ID (22-char ShortUUID)
          example: abc123def456ghi789jklm
        metric_name:
          type: string
          description: User-facing metric name
        delete_time:
          type: string
          format: date-time
          nullable: true
          description: When the metric was deleted
        deleted_by:
          type: string
          nullable: true
          description: Who deleted the metric (email address)
        purge_time:
          type: string
          format: date-time
          nullable: true
          description: >-
            When the metric will be permanently purged (delete_time + retention
            window)
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - INVALID_ARGUMENT
                - UNAUTHENTICATED
                - PERMISSION_DENIED
                - NOT_FOUND
                - ALREADY_EXISTS
                - INTERNAL
            message:
              type: string
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                    nullable: true
                  description:
                    type: string
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNAUTHENTICATED
              message: Authentication failed
              details:
                - field: X-API-Key
                  description: Invalid or missing API key
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: INTERNAL
              message: Internal server error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````