public void Remove(string searchText) { var item = Searches.Lookup(searchText); if (!item.HasValue) { return; } if (!item.Value.IsGlobal) { _localMetadataCollection.Remove(searchText); } else { _combinedSearchMetadataCollection.Global.Remove(searchText); } }