Skip to content

Archive.prune

Python · CLI

Free disk space: remove a local recording your archive holds, after checking its SHA-256. pull brings it back.

Parameters

directory str | Path required

The local recording.

Returns

dict

{pruned, bytes, prefix}.

API method
briskapi.Archive().prune(
    directory: str | Path,
) -> dict
Example usage
1
2
3
import briskapi

print(briskapi.Archive().prune("recordings/s1"))
brisk prune recordings/s1
Example response (Python)Illustrative
Illustrative values: this call needs your broker's BRiSK, or your own uploads, to run.
{'pruned': 'recordings/s1', 'bytes': 51230119, 'prefix': 'archive/3f…/20261013/085800-153512-7c14…'}