def unlink_logfiles(self,
                        options=defaults.DEFAULT_CRAWL_OPTIONS):

        host_log_basedir = options['logcrawler']['host_log_basedir']
        host_log_dir = self._get_logfiles_links_dest(
            host_log_basedir,
            options['environment'],
        )

        logger.info('Un-linking log files for container %s.'
                    % self.short_id)

        try:
            shutil.rmtree('/tmp/' + self.namespace)
        except (IOError, __HOLE__) as e:
            pass
        try:
            shutil.move(host_log_dir, '/tmp/' + self.namespace)
        except (IOError, OSError) as e:
            logger.exception(e)
            pass
dataset/ETHPy150Open cloudviz/agentless-system-crawler/crawler/dockercontainer.py/DockerContainer.unlink_logfiles