# DestroyChildAsync Method

## Overloads

| [DestroyChildAsync(AsyncHandle, String, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.DestroyChildAsync.htm#Qlik_Engine_GenericObject_DestroyChildAsync_Qlik_Engine_AsyncHandle_System_String_Qlik_Engine_GenericObjectProperties_) |  | Removes a child object. |
| --- | --- | --- |
| [DestroyChildAsync<T>(AsyncHandle, Func<Response, T>, String, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.DestroyChildAsync.htm#Qlik_Engine_GenericObject_DestroyChildAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_Qlik_Engine_GenericObjectProperties_) |  | Removes a child object. |
| [DestroyChildAsync(String, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.DestroyChildAsync.htm#Qlik_Engine_GenericObject_DestroyChildAsync_System_String_Qlik_Engine_GenericObjectProperties_) |  | Removes a child object. |

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

## DestroyChildAsync(AsyncHandle, String, GenericObjectProperties)

Removes a child object.

### Declaration

```

          public Task<bool> DestroyChildAsync(AsyncHandle asyncHandle, [QixName("qId")] string id, [QixName("qPropForThis")] GenericObjectProperties propForThis)
    
  
```

### 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 | id | Identifier of the child to remove. |
| [GenericObjectProperties](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObjectProperties.htm) | propForThis | Identifier of the parent's object and property to update.<br>Should be set to update the properties of the parent's object at the same time the child is created. |

### Returns

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

### Implements

[IGenericObject.DestroyChildAsync(AsyncHandle, String, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DestroyChildAsync.htm#Qlik_Engine_IGenericObject_DestroyChildAsync_Qlik_Engine_AsyncHandle_System_String_Qlik_Engine_GenericObjectProperties_)

### Remarks

It is possible to update the properties of the child's parent at the same time that the child is removed. Both operations are performed by the same call.

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

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

Removes a child object.

### Declaration

```

          public Task<T> DestroyChildAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qId")] string id, [QixName("qPropForThis")] GenericObjectProperties propForThis)
    
  
```

### 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 | id | Identifier of the child to remove. |
| [GenericObjectProperties](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObjectProperties.htm) | propForThis | Identifier of the parent's object and property to update.<br>Should be set to update the properties of the parent's object at the same time the child is created. |

### Returns

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

### Type Parameters

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

### Implements

[IGenericObject.DestroyChildAsync<T>(AsyncHandle, Func<Response, T>, String, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DestroyChildAsync.htm#Qlik_Engine_IGenericObject_DestroyChildAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_Qlik_Engine_GenericObjectProperties_)

### Remarks

It is possible to update the properties of the child's parent at the same time that the child is removed. Both operations are performed by the same call.

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

## DestroyChildAsync(String, GenericObjectProperties)

Removes a child object.

### Declaration

```
public Task<bool> DestroyChildAsync([QixName("qId")] string id, [QixName("qPropForThis")] GenericObjectProperties propForThis = null)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | id | Identifier of the child to remove. |
| [GenericObjectProperties](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObjectProperties.htm) | propForThis | Identifier of the parent's object and property to update.<br>Should be set to update the properties of the parent's object at the same time the child is created. |

### Returns

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

### Implements

[IGenericObject.DestroyChildAsync(String, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DestroyChildAsync.htm#Qlik_Engine_IGenericObject_DestroyChildAsync_System_String_Qlik_Engine_GenericObjectProperties_)

### Remarks

It is possible to update the properties of the child's parent at the same time that the child is removed. Both operations are performed by the same call.