---
title: "Admin Schedule Audit Purge"
method: POST
path: "/api/agent-v2/admin/audit-logs/schedule-purge"
tags: ["AgentV2"]
---

# Admin Schedule Audit Purge

`POST /api/agent-v2/admin/audit-logs/schedule-purge`

## Request

- Base URL: `https://api.premierecopilot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.premierecopilot.com/api/agent-v2/admin/audit-logs/schedule-purge`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Schedules a full deletion of the audit logs in 5 minutes.

Body MUST include a non-empty `confirm` string (any value) — friction guard
against accidental purge. Files remain downloadable for 5 minutes after the
call, then are permanently deleted.

Calling this again before the timer fires REPLACES the scheduled time
(sliding 5-minute window from the last call).

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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