code: public static function cleanup(): bool
      {
          $ret = true;
          foreach (self::$entities as $path => $entity) {
              if (!$entity->remove()) {
                  $ret = false;
              }
          }
          self::$entities = [];
          return $ret;
      }
docs: Remove all temp files & directories created since script start
  
  @return bool Indicates whether all files were successfully removed