# DestroyAllChildrenAsync Method

## Overloads

| [DestroyAllChildrenAsync(GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.DestroyAllChildrenAsync.htm#Qlik_Engine_GenericObject_DestroyAllChildrenAsync_Qlik_Engine_GenericObjectProperties_) |  | Removes all children and all children to the children on an object. |
| --- | --- | --- |
| [DestroyAllChildrenAsync(AsyncHandle, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.DestroyAllChildrenAsync.htm#Qlik_Engine_GenericObject_DestroyAllChildrenAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_GenericObjectProperties_) |  | Removes all children and all children to the children on an object. |

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

## DestroyAllChildrenAsync(GenericObjectProperties)

Removes all children and all children to the children on an object.

### Declaration

```

          public Task DestroyAllChildrenAsync([QixName("qPropForThis")] GenericObjectProperties propForThis = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [GenericObjectProperties](https://help.qlik.com/en-US/sense-developer/November2024/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 |  |

### Implements

[IGenericObject.DestroyAllChildrenAsync(GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DestroyAllChildrenAsync.htm#Qlik_Engine_IGenericObject_DestroyAllChildrenAsync_Qlik_Engine_GenericObjectProperties_)

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

## DestroyAllChildrenAsync(AsyncHandle, GenericObjectProperties)

Removes all children and all children to the children on an object.

### Declaration

```

          public Task DestroyAllChildrenAsync(AsyncHandle asyncHandle, [QixName("qPropForThis")] GenericObjectProperties propForThis = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| [GenericObjectProperties](https://help.qlik.com/en-US/sense-developer/November2024/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 |  |

### Implements

[IGenericObject.DestroyAllChildrenAsync(AsyncHandle, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DestroyAllChildrenAsync.htm#Qlik_Engine_IGenericObject_DestroyAllChildrenAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_GenericObjectProperties_)