def almost_everything(self, clean_all=False, file_path=False):
    '\n        Delete almost all discovered files.\n\n        :param bool clean_all:\n            Tell the subsystem if we have to clean everything instesd\n            of almost everything.\n        '
    if (('do_not_clean' not in PyFunceble.INTERN) or (not PyFunceble.INTERN['do_not_clean'])):
        to_delete = self.file_to_delete(clean_all)
        if ((not PyFunceble.abstracts.Version.is_local_cloned()) and clean_all):
            to_delete.extend(self.databases_to_delete())
        for file in to_delete:
            PyFunceble.helpers.File(file).delete()
            PyFunceble.LOGGER.info(f'Deleted: {file}')
        if clean_all:
            to_avoid = ['whois']
        else:
            to_avoid = ['whois', 'auto_continue', 'inactive', 'mining']
        if (not file_path):
            query = 'DELETE FROM {0}'
        else:
            query = 'DELETE FROM {0} WHERE file_path = %(file_path)s'
        if (PyFunceble.CONFIGURATION.db_type in ['mariadb', 'mysql']):
            with PyFunceble.engine.MySQL() as connection:
                for database_name in [y for (x, y) in PyFunceble.engine.MySQL.tables.items() if (x not in to_avoid)]:
                    lquery = query.format(database_name)
                    with connection.cursor() as cursor:
                        cursor.execute(lquery, {'file_path': file_path})
                        PyFunceble.LOGGER.info(f'Cleaned the data related to {repr(file_path)} from the {database_name} table.')
        if ((not PyFunceble.abstracts.Version.is_local_cloned()) and clean_all):
            PyFunceble.load_config()
            PyFunceble.LOGGER.info(f'Reloaded configuration.')
Delete almost all discovered files.

:param bool clean_all:
    Tell the subsystem if we have to clean everything instesd
    of almost everything.
def almost_everything(self, clean_all=False, file_path=False):
    '\n        Delete almost all discovered files.\n\n        :param bool clean_all:\n            Tell the subsystem if we have to clean everything instesd\n            of almost everything.\n        '
    if (('do_not_clean' not in PyFunceble.INTERN) or (not PyFunceble.INTERN['do_not_clean'])):
        to_delete = self.file_to_delete(clean_all)
        if ((not PyFunceble.abstracts.Version.is_local_cloned()) and clean_all):
            to_delete.extend(self.databases_to_delete())
        for file in to_delete:
            PyFunceble.helpers.File(file).delete()
            PyFunceble.LOGGER.info(f'Deleted: {file}')
        if clean_all:
            to_avoid = ['whois']
        else:
            to_avoid = ['whois', 'auto_continue', 'inactive', 'mining']
        if (not file_path):
            query = 'DELETE FROM {0}'
        else:
            query = 'DELETE FROM {0} WHERE file_path = %(file_path)s'
        if (PyFunceble.CONFIGURATION.db_type in ['mariadb', 'mysql']):
            with PyFunceble.engine.MySQL() as connection:
                for database_name in [y for (x, y) in PyFunceble.engine.MySQL.tables.items() if (x not in to_avoid)]:
                    lquery = query.format(database_name)
                    with connection.cursor() as cursor:
                        cursor.execute(lquery, {'file_path': file_path})
                        PyFunceble.LOGGER.info(f'Cleaned the data related to {repr(file_path)} from the {database_name} table.')
        if ((not PyFunceble.abstracts.Version.is_local_cloned()) and clean_all):
            PyFunceble.load_config()
            PyFunceble.LOGGER.info(f'Reloaded configuration.')