# RemoveCollection(string)

> Removes a collection so this provider no longer serves its addresses.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization.Providers.FileTables](/engine/6000.7/script-reference/unity/localization/providers/filetables.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public bool RemoveCollection(string guid)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The guid of the collection to remove.

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a collection was removed; otherwise, `false`. |

### Remarks

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](/engine/6000.7/script-reference/unity/localization/providers/filetables/filetableprovider/addcollection.md), [FileTableProvider.ClearCollections()](/engine/6000.7/script-reference/unity/localization/providers/filetables/filetableprovider/clearcollections.md)

Stop serving a collection.

### Examples

```csharp
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);
        }
    }
}
```
