---
title: "Cancel a document"
method: DELETE
path: "/v1/doc/{doc_hash_id}"
tags: ["Document"]
---

# Cancel a document

`DELETE /v1/doc/{doc_hash_id}`

## Request

- Base URL: `https://app.getswipe.in/api/partner`
- URL: `https://app.getswipe.in/api/partner/v1/doc/{doc_hash_id}`
- Auth: HTTP bearer

**v1 is deprecated — use the v2 endpoint instead.** Cancels an active document by its `hash_id`. The document remains in your account with a cancelled status.

## Response `200`

Success

- SuccessResponse
  - `success` boolean: Success
  - `message` string: Message
  - `serialNumber` string: Serial Number
  - `hashId` string: Hash ID

## Other responses

- `400`: Error
- `401`: Unauthorized
- `404`: Error
- `500`: Server Error

## Changes

- **2026-11-03** `0bcdbc62187b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getswipe/apis/swipeapi/changes/v1/doc/:doc_hash_id/delete.md)

---

[API](https://skmtc.dev/getswipe/apis/swipeapi.md) - [All operations](https://skmtc.dev/getswipe/apis/swipeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/getswipe/apis/swipeapi/revisions/0bcdbc62187b?raw)
