# Remove

> Removes a variable with the specified name.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings.PersistentVariables](/engine/6000.7/script-reference/unity/smartstrings/persistentvariables.md)
* **Assembly:** UnityEngine.SmartStringsModule

## Remove(string)

Removes a variable with the specified name.

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

### Parameters

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

### Returns

| Type                                                          | Description                                                                       |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a variable with the specified name was removed, `false` if one was not. |

## Remove(KeyValuePair\<string, IVariable>)

Removes a variable with the specified key.

```csharp
public bool Remove(KeyValuePair<string, IVariable> item)
```

### Parameters

**** (\[KeyValuePair\<string, IVariable>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair)): The item to be removed, only the Key field will be considered.

### Returns

| Type                                                          | Description                                                                       |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a variable with the specified name was removed, `false` if one was not. |
