prune

Contents

prune#

pulserver.host.prune()[source]#

Remove scan directories of a store root, least recently used first; return their names.

A scan is used when anything in its directory, or in a design of it, is written, or a design of it is found again. Scans unused for longer than max_age seconds are removed, then the least recently used until the root holds at most max_bytes. A scan used within the last day is kept whatever the limits, since it may still be playing or reconstructing. Stages older than an hour, left by a process that ended mid-design, are removed as well.