# DestroyAllChildren Method

## Overloads

| [DestroyAllChildren(GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DestroyAllChildren.htm#Qlik_Engine_IGenericObject_DestroyAllChildren_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.IGenericObject.DestroyAllChildren.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.DestroyAllChildren.htm)

## DestroyAllChildren(GenericObjectProperties)

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

### Declaration

```

          void DestroyAllChildren([QixName("qPropForThis")] GenericObjectProperties propForThis = null)
    
  
```

### Parameters

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