Delete route log range (requires confirmation)
const url = 'https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/route-logs?to=2026-04-15T12%3A00%3A00Z';const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"confirm_id":"example","confirm_timestamp":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/route-logs?to=2026-04-15T12%3A00%3A00Z' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "confirm_id": "example", "confirm_timestamp": 1 }'Permanently erases every route forensic record whose time falls in [from, to]. to is required — it is not defaulted to now, which would purge the most recent records rather than aged ones. Requires a confirmation body (see the 412 response); the 412 echoes the resolved date range.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace UUID
Query Parameters
Section titled “Query Parameters”Upper cutoff (RFC3339 or unix seconds). Required: the range is not defaulted, so a purge cannot accidentally erase the newest 24 hours.
Lower bound (RFC3339 or unix seconds). Optional; defaults to 24h before to, so an omitted bound erases less, never the whole history.
Request Bodyrequired
Section titled “Request Bodyrequired”Destructive-action confirmation with confirm_id (nsid string) and confirm_timestamp (unix int, within one hour of server time).
object
Examplegenerated
{ "confirm_id": "example", "confirm_timestamp": 1}Responses
Section titled “Responses”OK
object
Examplegenerated
{ "success": true, "records_deleted": 1}Confirmation required (missing or stale body). The problem detail and its from/to fields echo the resolved date range to be purged.
RFC 7807 Problem Details
object
Problem type slug URI
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example"}default
Section titled “default”Error response
RFC 7807 Problem Details
object
Problem type slug URI
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example"}