Clean up expired platform tombstones for a tenant.
POST
/api/admin/platform/tombstones/cleanup
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/platform/tombstones/cleanup \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "dry_run": false }'Count or delete expired tombstones in the selected tenant PII store. Set dry_run true to preview the number of rows that would be deleted.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Optional dry-run flag for expired tombstone cleanup.
Media type application/json
object
tenant_id
string
dry_run
boolean
key
additional properties
Example
{ "dry_run": false}Responses
Section titled “ Responses ”Expired tombstone cleanup result.
Media type application/json
object
dryRun
required
boolean
expiredCount
integer
deletedCount
integer
message
required
string
tenantId
required
string
key
additional properties
Example
{ "dryRun": false, "deletedCount": 3, "message": "3 expired tombstones deleted", "tenantId": "tenant_123"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}