# Clear()

> Removes every variable from the group.

## Definition

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

```csharp
public void Clear()
```

### Remarks

Leaves the group empty, so Smart String placeholders that referenced the removed variables no longer resolve.

Remove all variables.

### Examples

```csharp
using Unity.Localization;

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