# DestroyGenericSessionObjectAsync Method

## Overloads

| [DestroyGenericSessionObjectAsync(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DestroyGenericSessionObjectAsync.htm#Qlik_Engine_App_DestroyGenericSessionObjectAsync_System_String_) |  | Removes a transient object. |
| --- | --- | --- |
| [DestroyGenericSessionObjectAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DestroyGenericSessionObjectAsync.htm#Qlik_Engine_App_DestroyGenericSessionObjectAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Removes a transient object. |
| [DestroyGenericSessionObjectAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DestroyGenericSessionObjectAsync.htm#Qlik_Engine_App_DestroyGenericSessionObjectAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_) |  | Removes a transient object. |

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

## DestroyGenericSessionObjectAsync(String)

Removes a transient object.

### Declaration

```

          [QixName("DestroySessionObject")]
public Task<bool> DestroyGenericSessionObjectAsync([QixName("qId")] string id)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | id | Identifier of the transient object to remove. |

### Returns

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

### Implements

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

### Remarks

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

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

## DestroyGenericSessionObjectAsync(AsyncHandle, String)

Removes a transient object.

### Declaration

```

          [QixName("DestroySessionObject")]
public Task<bool> DestroyGenericSessionObjectAsync(AsyncHandle asyncHandle, [QixName("qId")] string id)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | id | Identifier of the transient object to remove. |

### Returns

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

### Implements

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

### Remarks

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

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

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

Removes a transient object.

### Declaration

```
[QixName("DestroySessionObject")]
public Task<T> DestroyGenericSessionObjectAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qId")] string id)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/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/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| System.String | id | Identifier of the transient object to remove. |

### Returns

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

### Type Parameters

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

### Implements

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

### Remarks

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