Delete Audit Logs Before
POST {{HDB_ENDPOINT}}
AuditLog must be enabled in the HarperDB configuration file to make this request. Deletes audit log data for the specified database table that is older than the specified timestamp.
Operation is restricted to super_user roles only
- operation (required) - must always be delete_audit_logs_before
- schema (required) - schema under which the transaction log resides. Must be a string.
- table (required) - table under which the transaction log resides. Must be a string.
- timestamp (required) - records older than this date will be deleted. Format is millisecond-based epoch in UTC
Request Body
{"operation"=>"delete_audit_logs_before", "schema"=>"dev", "table"=>"dog", "timestamp"=>1660585759710.56}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"message":"Starting job with id 7479e5f8-a86e-4fc9-add7-749493bc100f"}