src/fs/Temp.php
public static function cleanup(): bool
    {
        $ret = true;
        foreach (self::$entities as $path => $entity) {
            if (!$entity->remove()) {
                $ret = false;
            }
        }
        self::$entities = [];
        return $ret;
    }
public static function cleanup(): bool
    {
        $ret = true;
        foreach (self::$entities as $path => $entity) {
            if (!$entity->remove()) {
                $ret = false;
            }
        }
        self::$entities = [];
        return $ret;
    }
Remove all temp files & directories created since script start

@return bool Indicates whether all files were successfully removed