| Parameter | Description |
|---|---|
| guid | The guid of the collection to remove. |
bool
true if a collection was removed; otherwise, false.
Removes a collection so this provider no longer serves its addresses.
Call this when a collection is deleted or moved to another provider. A record left behind keeps claiming the
collection's name as an address prefix, so data files left in the output folder still resolve to it and a
surviving collection whose name starts with the same text can be parsed against the stale prefix. An empty or
null guid is treated as absent. This does not delete any generated file; regenerating prunes those.
Additional resources: FileTableProvider.AddCollection, FileTableProvider.ClearCollections
<para>Stop serving a collection.</para>
using Unity.Localization.Providers.FileTables;
namespace Unity.Localization.Samples { public static class FileTableProviderRemoveCollectionExample { public static bool StopServing(JsonResourceProvider provider, string collectionGuid) { return provider.RemoveCollection(collectionGuid); } } }