Read the size of the flow metadata and delete it
Flow metadata is the result of the traffic analysis, stored in the metadata database on the data disk. It can be deleted for a time range or completely, for example to free disk space or to remove the traces of a measurement. The share of the disk reserved for metadata is set on the Disk Share page.
Path: /api/metadata
Method: GET
Minimum user role: viewer
Response on success (200 OK):
{
"message": "Success",
"data": {
"size": 122660261888
}
}size - bytes occupied by metadata. The value is derived from the disk usage: everything used on the data disk that is not a capture file counts as metadata.Response on failure (500 Internal Server Error): {"message": "could not get size of metadata: <reason>", "data": null}
/api/metadataDELETEoperatorstart_ts - optional, epoch nanoseconds; metadata from this time on is deletedend_ts - optional, epoch nanoseconds; metadata up to this time is deletedstart_ts or end_ts (or both) the given range is deleted, a missing bound meaning the beginning or the end of the stored data; without parameters all metadata is deleted{"message": "Successfully started erasing process for traffic metadata, from <start> till <end> (UTC). This will continue in background.", "data": null} for a range, {"message": "Successfully started erasing process for all traffic metadata. This will continue in background.", "data": null} for everything{"message": "could not delete metadata: <reason>", "data": null}, where the reason is
start timestamp (<start>) must be less than end timestamp (<end>)cannot start metadata deletion while the automatic cleanup is in progressGET decreases while it progresses. Only one deletion can run at a time.