---
title: "Preview audit record cleanup"
method: GET
path: "/data-retention/audit-records/preview"
tags: ["Data Retention"]
---

# Preview audit record cleanup

`GET /data-retention/audit-records/preview`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/data-retention/audit-records/preview`
- Auth: HTTP bearer

Returns how many audit records would be deleted now if the given retention period (months: 12, 24, 36, 60, 84 or 120) were applied. Read-only. Admin only.

## Response `200`

Success

## Other responses

- `400`: Invalid retention period
- `403`: Admin access required
- `500`: Internal server error

## Changes

- **2026-10-12** `853aa04f7cb0`: 1 info
  - endpoint added
- **2026-10-12** `08630a8e6075`: 1 breaking
  - api path removed without deprecation
- **2026-10-12** `f120c4c3fdca`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/data-retention/audit-records/preview/get.md)

---

[API](https://skmtc.dev/verifywise-ai/apis/verifywise-api.md) - [All operations](https://skmtc.dev/verifywise-ai/apis/verifywise-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verifywise-ai/apis/verifywise-api/revisions/9ccf3d4f3918?raw)
