def METHOD_NAME():
    if (cleanLogSeconds <= 0) and (cleanZipSeconds <= 0):
        # disabled, don't do anything
        return
    # look for regular files in the processed/ directory
    foundFiles = [
        (os.path.join(root, filename)) for root, dirnames, filenames in os.walk(processedDir) for filename in filenames
    ]
    # look for rotated files from live zeek instance
    rotatedFiles = [
        (os.path.join(root, filename)) for root, dirnames, filenames in os.walk(liveDir) for filename in filenames
    ]
    # look up the filebeat registry file and try to read it
    fbReg = None
    if os.path.isfile(fbRegFilename):
        with open(fbRegFilename) as f:
            fbReg = json.load(f)
    # see if the files we found are in use and old enough to be pruned
    for file in foundFiles:
        checkFile(file, filebeatReg=fbReg, checkLogs=True, checkArchives=True)
    for file in rotatedFiles:
        checkFile(file, filebeatReg=None, checkLogs=False, checkArchives=True)
    # clean up any broken symlinks in the current/ directory
    for current in os.listdir(currentDir):
        currentFileSpec = os.path.join(currentDir, current)
        if os.path.islink(currentFileSpec) and not os.path.exists(currentFileSpec):
            print('removing dead symlink "{}"'.format(currentFileSpec))
            silentRemove(currentFileSpec)
    # clean up any old and empty directories in processed/ directory
    cleanDirSeconds = min(i for i in (cleanLogSeconds, cleanZipSeconds) if i > 0)
    candidateDirs = []
    for root, dirs, files in os.walk(processedDir, topdown=False):
        if root and dirs:
            candidateDirs += [os.path.join(root, tmpDir) for tmpDir in dirs]
    candidateDirs = list(set(candidateDirs))
    candidateDirs.sort(reverse=True)
    candidateDirs.sort(key=len, reverse=True)
    candidateDirsAndTimes = zip(candidateDirs, [os.path.getmtime(dirToRm) for dirToRm in candidateDirs])
    for dirToRm, dirTime in candidateDirsAndTimes:
        dirAge = nowTime - dirTime
        if dirAge >= cleanDirSeconds:
            try:
                os.rmdir(dirToRm)
                print('removed empty directory "{}" (used {} seconds ago)'.format(dirToRm, dirAge))
            except OSError:
                pass