# RemoveSessionAlternateStateAsync Method

## Overloads

| [RemoveSessionAlternateStateAsync(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveSessionAlternateStateAsync.htm#Qlik_Engine_App_RemoveSessionAlternateStateAsync_System_String_) |  | Removes an session alternate state in the app. |
| --- | --- | --- |
| [RemoveSessionAlternateStateAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveSessionAlternateStateAsync.htm#Qlik_Engine_App_RemoveSessionAlternateStateAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Removes an session alternate state in the app. |
| [RemoveSessionAlternateStateAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveSessionAlternateStateAsync.htm#Qlik_Engine_App_RemoveSessionAlternateStateAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_) |  | Removes an session alternate state in the app. |

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

## RemoveSessionAlternateStateAsync(String)

Removes an session alternate state in the app.

### Declaration

```

          public Task<bool> RemoveSessionAlternateStateAsync([QixName("qStateName")] string stateName)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | stateName | Name of the alternate state. |

### Returns

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

### Implements

[IApp.RemoveSessionAlternateStateAsync(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.RemoveSessionAlternateStateAsync.htm#Qlik_Engine_IApp_RemoveSessionAlternateStateAsync_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.RemoveSessionAlternateStateAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveSessionAlternateStateAsync.htm)

## RemoveSessionAlternateStateAsync(AsyncHandle, String)

Removes an session alternate state in the app.

### Declaration

```

          public Task<bool> RemoveSessionAlternateStateAsync(AsyncHandle asyncHandle, [QixName("qStateName")] string stateName)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | stateName | Name of the alternate state. |

### Returns

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

### Implements

[IApp.RemoveSessionAlternateStateAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.RemoveSessionAlternateStateAsync.htm#Qlik_Engine_IApp_RemoveSessionAlternateStateAsync_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.RemoveSessionAlternateStateAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.RemoveSessionAlternateStateAsync.htm)

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

Removes an session alternate state in the app.

### Declaration

```
public Task<T> RemoveSessionAlternateStateAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qStateName")] string stateName)
```

### Parameters

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

### Returns

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

### Type Parameters

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

### Implements

[IApp.RemoveSessionAlternateStateAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.RemoveSessionAlternateStateAsync.htm#Qlik_Engine_IApp_RemoveSessionAlternateStateAsync__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.