# DestroySessionVariableByName Method

## Overloads

| [DestroySessionVariableByName(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DestroySessionVariableByName.htm#Qlik_Engine_App_DestroySessionVariableByName_System_String_) |  | Removes a transient variable. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DestroySessionVariableByName.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DestroySessionVariableByName.htm)

## DestroySessionVariableByName(String)

Removes a transient variable.

### Declaration

```

          public bool DestroySessionVariableByName([QixName("qName")] string name)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | name | Name of the variable. |

### Returns

| Type | Description |
| --- | --- |
| System.Boolean |  |

### Implements

[IApp.DestroySessionVariableByName(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.DestroySessionVariableByName.htm#Qlik_Engine_IApp_DestroySessionVariableByName_System_String_)

### Remarks

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