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

# Delete Activation Document

> Remove an uploaded activation document.

Removes a single uploaded document from the provider's `upload` step. Use this to clean up a document that was uploaded in error or to tidy up entries left behind by a rejection cycle.

<Note>
  Only `pending` and `rejected` documents can be deleted. Once a document has transitioned to `processed` (approved by the Hopae review team), it is part of the accepted evidence set and deletion is blocked with `409 RESOURCE_CONFLICT` — contact support if you believe it was approved in error.
</Note>

## Request

<ParamField header="Authorization" type="string" required>
  `Bearer <API_KEY>` from Console > Developers > Workspace API Keys.
</ParamField>

### Path parameters

<ParamField path="client_id" type="string" required>
  Client identifier of the app.
</ParamField>

<ParamField path="provider_id" type="string" required>
  Provider identifier (e.g., `ftn`, `spid-ig`, `idin`). Must match the provider the document was uploaded against.
</ParamField>

<ParamField path="document_id" type="string" required>
  Identifier of the document to delete. Obtain it from the `documentId` field of the [Upload Activation Documents](/api-reference/workspace/activation/upload-documents) response or from `upload.uploaded[].documentId` in [Get Activation Steps](/api-reference/workspace/activation/get-activation-steps).
</ParamField>

## Response

<ResponseField name="deleted" type="boolean">
  Always `true` when the request succeeds.
</ResponseField>

## Errors

| Code                 | HTTP | When you see it                                                                                                                                                                                         |
| -------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `RESOURCE_NOT_FOUND` | 404  | The app was not found, or no document with this `document_id` exists under the given `provider_id`. A document uploaded against a different provider on the same app is not reachable through this URL. |
| `RESOURCE_CONFLICT`  | 409  | The document's `state` is `processed` and cannot be deleted.                                                                                                                                            |

<RequestExample>
  ```bash theme={null}
  curl -X DELETE \
    -H "Authorization: Bearer sk_workspace_test_..." \
    "https://sandbox.api.hopae.com/connect/v1/apps/abc123/providers/spid-ig/activation/documents/0567eeb3-eda7-489a-9ba8-84f0ae3f301e"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "deleted": true
  }
  ```
</ResponseExample>
