---
title: "Archive a card"
method: DELETE
path: "/api/board/{boardId}/{cardId}"
tags: ["Cards"]
---

# Archive a card

`DELETE /api/board/{boardId}/{cardId}`

## Request

- Base URL: `https://core-api.getaptly.com`
- URL: `https://core-api.getaptly.com/api/board/{boardId}/{cardId}`
- Auth: one of:
  - API key in header `x-token`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/getaptly/apis/aptly-api/docs/api/board/:boardId/:cardId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Archives the card. This is a soft delete — the card is never removed, only marked
archived (same as the "Delete" action in the Aptly UI, which archives rather than
hard-deletes).

## Path parameters

- `boardId` string, required
- `cardId` string, required

## Response `200`

Card archived.

- object
  - `data` object
    - `_id` string
    - `archived` boolean

## Other responses

- `401`: Invalid or missing API key.
- `403`: API access is disabled for this board.
- `404`: Card not found.

---

[API](https://skmtc.dev/getaptly/apis/aptly-api.md) - [All operations](https://skmtc.dev/getaptly/apis/aptly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaptly/apis/aptly-api/revisions/75c367e0b8e5?raw)
