# DeleteObjectWithChildren

## Description

Deletes the object at the given ID, if the object doesn't exist then this command does nothing. This command also deletes any child objects or animations that were created when this object was loaded, if you do not want to delete those then use DeleteObject instead. If you use this command on an object that was loaded with LoadObject then it deletes it as normal.

## Definition

DeleteObjectWithChildren( objID )

void agk::DeleteObjectWithChildren( UINT objID )

## Parameters

- objID - The ID of the object to delete.