# Remove(string)

> Removes the variable stored under the given name.

## Definition

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

```csharp
public bool Remove(string name)
```

### Parameters

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

### Returns

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

### Remarks

The name is whitespace-normalized the way [LocalVariablesGroup.Add](/engine/6000.7/script-reference/unity/localization/localvariablesgroup/add.md) normalizes it. Does nothing when no variable matches.

Remove a variable by name.

### Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class LocalVariablesGroupRemoveExample
    {
        public void Remove()
        {
            var group = new LocalVariablesGroup();
            group.Add(new LocalizedString(), "subtitle");
            group.Remove("subtitle");
        }
    }
}
```
