# DestroyVariableByName method

Removes a variable. Script-defined variables cannot be removed using the *DestroyVariableById method* or the *DestroyVariableByName method*. For more information, see *Remove a variable*.

Information note

The operation is successful if **qSuccess** is set to true.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qName | Name of the variable. | Yes | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qSuccess | &lt;true or false&gt; | Boolean |

## Access Control

`delete`