def clean_configs(self):
        for path in self.confs:
            pidfile = '{0}.pid'.format(path)
            try:
                try:
                    pid = int(open(pidfile).read().strip())
                    os.kill(pid, signal.SIGTERM)
                except ValueError:
                    pass
                if os.path.exists(pidfile):
                    os.remove(pidfile)
                if not self.opts['no_clean']:
                    shutil.rmtree(path)
            except (OSError, IOError):
                pass
Used to control how filtering works. @see
dataset/ETHPy150Open saltstack/salt/tests/minionswarm.py/Swarm.clean_configs--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/data/util/hierarchical_container.py/HierarchicalContainer.isIncludeParentsWhenFiltering