code: function(glob) {
      var newObjects = [];
      var regex = this._globToRegex(glob);
      for (var i = 0; i < this._objects.length; ++i) {
        var obj = this._objects[i];
        if (!regex.test(obj.name())) {
          newObjects.push(obj);
        } else {
          obj.destroy();
        }
      }
      this._objects = newObjects;
    }
docs: remove all objects whose names match the provided glob pattern from the viewer.