---
title: "Run the daily data-rights sweep now: due org deletions, unfinished erasures, lost dispatches, expired exports (preview, then confirm)"
method: POST
path: "/api/admin/data/sweep"
tags: ["data"]
---

# Run the daily data-rights sweep now: due org deletions, unfinished erasures, lost dispatches, expired exports (preview, then confirm)

`POST /api/admin/data/sweep`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/admin/data/sweep`
- Auth: none declared

## Request body

- object
  - `confirm` boolean

## Response `200`

Pending requests (preview) or the sweep result.

- object

## Other responses

- `400`: Invalid, or the confirmation did not match.
- `403`: Insufficient role.
- `404`: Not found.
- `409`: Conflict, legal hold, or not ready.
- `503`: Data rights are switched off here (`data_rights_disabled`).

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
