app/Services/HousekeepingService.php
public function deleteOldWebtreesFiles(Filesystem $filesystem): array
    {
        $paths_to_delete = [];

        foreach (self::OLD_PATHS as $path) {
            if (!$this->deleteFileOrFolder($filesystem, $path)) {
                $paths_to_delete[] = $path;
            }
        }

        return $paths_to_delete;
    }
public function deleteOldWebtreesFiles(Filesystem $filesystem): array
    {
        $paths_to_delete = [];

        foreach (self::OLD_PATHS as $path) {
            if (!$this->deleteFileOrFolder($filesystem, $path)) {
                $paths_to_delete[] = $path;
            }
        }

        return $paths_to_delete;
    }
public function deleteOldWebtreesFiles ( Filesystem $ filesystem ) : array { $ paths_to_delete = [ ] ; foreach ( self :: OLD_PATHS as $ path ) { if ( ! $ this -> deleteFileOrFolder ( $ filesystem , $ path ) ) { $ paths_to_delete [ ] = $ path ; } } return $ paths_to_delete ; }
Delete files and folders that belonged to an earlier version of webtrees.
Return a list of those that we could not delete.

@param Filesystem $filesystem

@return array
Delete files and folders that belonged to an earlier version of webtrees . Return a list of those that we could not delete .