

def delete_node_logs(node, prefix=settings.SYSLOG_DIR):
    node_logs = generate_log_paths_for_node(node, prefix)
    log_paths = (node_logs.pop('links') + node_logs.values())
    logger.debug("Deleting logs for removed environment's nodes")
    for log_path in log_paths:
        if os.path.lexists(log_path):
            logger.debug('delete_node_logs log_path="%s"', log_path)
            remove_silently(log_path)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/utils/logs.py delete_node_logs/original