# DestroyChild Method

## Overloads

| [DestroyChild(String, GenericObjectProperties)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.DestroyChild.htm#Qlik_Engine_GenericObject_DestroyChild_System_String_Qlik_Engine_GenericObjectProperties_) |  | Removes a child object. |
| --- | --- | --- |

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

## DestroyChild(String, GenericObjectProperties)

Removes a child object.

### Declaration

```

          public bool DestroyChild([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.Boolean |  |

### Implements

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