Skip to content

`DELETE /api/v1/audit?before=<iso8601>` — manually prune old audit events. Admin only.

DELETE
/api/v1/audit
curl --request DELETE \
--url 'https://example.com/api/v1/audit?before=example'
before
required
string

Cutoff timestamp (RFC 3339 / ISO 8601); events strictly before this point are deleted.

Number of pruned events

Media type application/json

Response body for DELETE /api/v1/audit.

object
deleted
required
integer
Example generated
{
"deleted": 1
}

Invalid cutoff timestamp

Admin role required