Node

Clear usage data from a specified table

Deletes all rows from the selected usage data table. Use with caution.

Allowed tables: - node_user_usages: Deletes user-specific node usage traffic records. - node_usages: Deletes node-level aggregated traffic (uplink/downlink) records.

Optional filters: - start: ISO 8601 timestamp to filter from (inclusive) - end: ISO 8601 timestamp to filter to (exclusive)

⚠️ This operation is irreversible. Ensure correct usage in production environments.

delete/api/nodes/clear_usage_data/{table}

Path parameters

table'node_user_usages' | 'node_usages' required

Query parameters

startstring date-time nullable
endstring date-time nullable

Response

Successful Response

{"stackTrail":"paths:/api/nodes/clear_usage_data/{table}:delete:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes