# DeleteConnectionAsync Method

## Overloads

| [DeleteConnectionAsync(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DeleteConnectionAsync.htm#Qlik_Engine_App_DeleteConnectionAsync_System_String_) |  | Deletes a connection. |
| --- | --- | --- |
| [DeleteConnectionAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.DeleteConnectionAsync.htm#Qlik_Engine_App_DeleteConnectionAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Deletes a connection. |

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

## DeleteConnectionAsync(String)

Deletes a connection.

### Declaration

```

          public Task DeleteConnectionAsync([QixName("qConnectionId")] string connectionId)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | connectionId | Identifier of the connection to remove. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

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

### Remarks

In Qlik Sense Enterprise, there is an additional file connection named `AttachedFiles` . The AttachedFiles connection can only be removed by the administrator of the system.

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

## DeleteConnectionAsync(AsyncHandle, String)

Deletes a connection.

### Declaration

```

          public Task DeleteConnectionAsync(AsyncHandle asyncHandle, [QixName("qConnectionId")] string connectionId)
    
  
```

### 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 | connectionId | Identifier of the connection to remove. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

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

### Remarks

In Qlik Sense Enterprise, there is an additional file connection named `AttachedFiles` . The AttachedFiles connection can only be removed by the administrator of the system.