---
title: "List purge operations"
method: GET
path: "/sources/{sourceKey}/v1/purge"
tags: ["Purge"]
---

# List purge operations

`GET /sources/{sourceKey}/v1/purge`

List purge operations.

## Path parameters

- `sourceKey` string, required

## Query parameters

- `page` integer
- `perPage` integer

## Response `200`

A list of purge operations.

- object
  - `meta` V1ListResponseMeta, required
    - `numPages` integer, required
    - `page` integer, required
    - `perPage` integer, required
    - `total` integer, required
  - `data` V1PurgeOperationReceipt[], required
    - `taskId` string, required — The task identifier. Used to track an async task in the system. Use the task ID to poll for completion status. The taskId holds different prefix to represent different tasks. - oneOf task: `s_<id>`. - bulk task: `bk_<id>` (deprecated: `<id>` only). - bundle task: `bd_<id>` (deprecated: `<id>` only). - purge task: `pg_<id>` (deprecated: `purge:<id>`).
    - `purgeId` string, required — ID of the purge operation. Deprecated, please use the taskId instead.
    - `collectionType` 'resources' | 'relationships' | 'objects', required
    - `collectionKey` string, required — Key of the resource or relationship collection.
    - `status` 'SUCCESS' | 'PENDING' | 'CANCELLED' | 'FAILURE', required — Status of the operation. * `SUCCESS`: The operation was persisted in the source, or was dropped by a reject action of the user. * `PENDING`: The operation is being processed asyncronously by the system or is in a pipeline IN_REVIEW status. * `CANCELLED`: The operation was cancelled by the system due to a concurrent operation. * `FAILURE`: The operation failed due to validation or processing error.
    - `deletedCount` integer — Number of documents deleted in case of success status.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Returned when the request is malformed or invalid.
- `404` — Returned when the source does not exist.

---

[API](https://skmtc.dev/clinia/apis/registry-api.md) · [All operations](https://skmtc.dev/clinia/apis/registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clinia/registry-api/revisions/3a9197b11351/schema)
