pub fn take_prune_request(state_dir: &Path) -> Option<String>
Takes a pending prune request, if there is one, and returns its identifier.
Taking it is deleting it, so a request is honoured once however many times it is looked for.