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

# Remove Card from Exception File

> Removes the specified card record from the exception file

Use this endpoint to remove a card from the exception file.

The Marqeta platform processes this request asynchronously.
Subscribe to the `pan.exception_file.deleted` webhook event to confirm when the card network completes the action.


## OpenAPI

````yaml DELETE /exception-file/{cardToken}
openapi: 3.0.3
info:
  title: Exception File Management
  description: >-
    Marqeta's Exception File Management service enables you to manage cards on
    the exception file.
  version: 0.0.1
  x-docs-collection: Core API
  contact:
    name: Marqeta
    url: https://www.marqeta.com
servers:
  - url: https://sandbox-api.marqeta.com/v3
security: []
tags:
  - name: Exception File
    description: >-
      Marqeta's Exception File Management service enables you to manage card
      entries on the exception file.
paths:
  /exception-file/{cardToken}:
    delete:
      tags:
        - Exception File
      summary: Removes a card from the exception file
      description: Removes the specified card record from the exception file.
      operationId: deleteCardFromExceptionFile
      parameters:
        - name: cardToken
          in: path
          required: true
          schema:
            type: string
            x-allowableValues: Valid card token
          description: Card token to be deleted from the exception file.
        - $ref: '#/components/parameters/programHeaderParam'
        - name: action_code
          in: query
          required: false
          description: >
            Optional reason code recorded with the removal.

            - `CLOS` - Card terminated / closed account

            - `LCPU` - Lost card

            - `SCPU` - Stolen card

            - `INVA` - Invalid / not found account

            - `PUWF` - Fraud pickup (non-specific)

            - `PUNF` - Pickup (no fraud)

            - `EXPC` - Expired card (authorization only; declines with response
            code 54)

            - `DNTH` - General block (authorization only; declines with response
            code 05)
          schema:
            type: string
            enum:
              - CLOS
              - LCPU
              - SCPU
              - INVA
              - PUWF
              - PUNF
              - EXPC
              - DNTH
      responses:
        '202':
          description: >-
            Request accepted for processing. The card is removed from the
            exception file asynchronously.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionFileMgmtResponse'
              example:
                message: Request accepted for processing
        '400':
          description: Program is not onboarded for the exception file Management feature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionFileMgmtResponse'
              example:
                message: >-
                  Program is not onboarded for the Exception File Management
                  feature
        '404':
          description: Card token is not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionFileMgmtResponse'
              example:
                message: Card token is not found
        '422':
          description: No exception file entry exists for the specified card token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionFileMgmtResponse'
              example:
                message: No exception file entry exists for the specified card token.
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionFileMgmtResponse'
              example:
                message: Unable to process the request. Please retry later
      security:
        - zionToken: []
        - oauth2:
            - exception-file-mgmt-service:write
components:
  parameters:
    programHeaderParam:
      name: X-Marqeta-Program-Short-Code
      description: Program short code of the program managing the card.
      in: header
      example: sqc9
      required: true
      schema:
        type: string
        x-allowableValues: Valid program short code
  schemas:
    ExceptionFileMgmtResponse:
      type: object
      properties:
        message:
          type: string
          description: Human-readable message describing the result of the request.
  securitySchemes:
    zionToken:
      type: http
      scheme: basic
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://internal-auth.mq01-dev.marqeta.io/oauth/token
          scopes:
            exception-file-mgmt-service:read: Read exception file records
            exception-file-mgmt-service:write: Create, update, or delete exception file records

````

## Related topics

- [Exception File Management](/docs/core-api/exception-file-management.md)
- [Add Card to Exception File](/docs/core-api/exception-file-add.md)
- [Retrieve Card from Exception File](/docs/core-api/exception-file-retrieve.md)
- [Update Card on Exception File](/docs/core-api/exception-file-update.md)
- [Exception File Record Object](/docs/core-api/exception-file-object.md)
