# RemoveVariableAsync Method

## Overloads

| [RemoveVariableAsync(String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveVariableAsync.htm#Qlik_Engine_App_RemoveVariableAsync_System_String_) |  | Removes a variable. |
| --- | --- | --- |
| [RemoveVariableAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveVariableAsync.htm#Qlik_Engine_App_RemoveVariableAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Removes a variable. |
| [RemoveVariableAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveVariableAsync.htm#Qlik_Engine_App_RemoveVariableAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_) |  | Removes a variable. |

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

## RemoveVariableAsync(String)

Removes a variable.

### Declaration

```

          [Obsolete("Use _Doc::DestroyVariableById_ method or _Doc::DestroyVariableByName_ method instead")]
public Task<bool> RemoveVariableAsync([QixName("qName")] string name)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | name | Name of the variable. Variable names are case sensitive. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Boolean&gt; |  |

### Implements

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

### Remarks

The operation is successful if qReturn is set to true.

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

## RemoveVariableAsync(AsyncHandle, String)

Removes a variable.

### Declaration

```

          [Obsolete("Use _Doc::DestroyVariableById_ method or _Doc::DestroyVariableByName_ method instead")]
public Task<bool> RemoveVariableAsync(AsyncHandle asyncHandle, [QixName("qName")] string name)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | name | Name of the variable. Variable names are case sensitive. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Boolean&gt; |  |

### Implements

[IApp.RemoveVariableAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.RemoveVariableAsync.htm#Qlik_Engine_IApp_RemoveVariableAsync_Qlik_Engine_AsyncHandle_System_String_)

### Remarks

The operation is successful if qReturn is set to true.

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

## RemoveVariableAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;, String)

Removes a variable.

### Declaration

```
[Obsolete("Use _Doc::DestroyVariableById_ method or _Doc::DestroyVariableByName_ method instead")]
public Task<T> RemoveVariableAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qName")] string name)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| System.String | name | Name of the variable. Variable names are case sensitive. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |

### Implements

[IApp.RemoveVariableAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.RemoveVariableAsync.htm#Qlik_Engine_IApp_RemoveVariableAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_)

### Remarks

The operation is successful if qReturn is set to true.