(self)
This function takes all the paths in the target file
        and cleans the project paths that are not protected.
This function takes all the paths in the target file
        and cleans the project paths that are not protected.
This function takes all the paths in the target file and cleans the project paths that are not protected .
def run(self):
        """
        This function takes all the paths in the target file
        and cleans the project paths that are not protected.
        """
        move_to_nearest_project_dir(self.args)
        if ('dbt_modules' in self.config.clean_targets and
           self.config.packages_install_path not in self.config.clean_targets):
            deprecations.warn('install-packages-path')
        for path in self.config.clean_targets:
            fire_event(CheckCleanPath(path=path))
            if not self.__is_protected_path(path):
                shutil.rmtree(path, True)
                fire_event(ConfirmCleanPath(path=path))
            else:
                fire_event(ProtectedCleanPath(path=path))

        fire_event(FinishedCleanPaths())
def run ( self ) : move_to_nearest_project_dir ( self . args ) if ( 'dbt_modules' in self . config . clean_targets and self . config . packages_install_path not in self . config . clean_targets ) : deprecations . warn ( 'install-packages-path' ) for path in self . config . clean_targets : fire_event ( CheckCleanPath ( path = path ) ) if not self . __is_protected_path ( path ) : shutil . rmtree ( path , True ) fire_event ( ConfirmCleanPath ( path = path ) ) else : fire_event ( ProtectedCleanPath ( path = path ) ) fire_event ( FinishedCleanPaths ( ) )