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

# Discard pending enrichment drafts

> Deletes every pending enrichment draft. Org admin only.



## OpenAPI

````yaml https://app-api.costory.io/docs/openapi.json delete /enrichments/draft
openapi: 3.0.0
info:
  title: Costory
  version: '1.0'
  description: API Documentation
servers:
  - url: ''
    description: Production server
security: []
paths:
  /enrichments/draft:
    delete:
      tags:
        - Enrichments
      summary: Discard pending enrichment drafts
      description: Deletes every pending enrichment draft. Org admin only.
      operationId: discardEnrichmentDrafts
      responses:
        '204':
          description: Drafts discarded
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: Org admin required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DimensionsAdminRequired'
      security:
        - bearerAuth: []
components:
  schemas:
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          description: Unauthorized error message
      required:
        - error
    DimensionsAdminRequired:
      type: object
      properties:
        error:
          type: string
          enum:
            - ADMIN_REQUIRED
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or Clerk ak_* API key
      description: >-
        Send `Authorization: Bearer <credential>` using either a Clerk session
        JWT or a Clerk API key (`ak_*`). API keys may identify a user (`user_*`)
        or organization (`org_*`) principal and are generated in the Clerk
        Dashboard under API keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.