public static function cleanup(): bool
    {
        $ret = true;
        foreach (self::$entities as $path => $entity) {
            if (!$entity->remove()) {
                $ret = false;
            }
        }
        self::$entities = [];
        return $ret;
    }