# DeleteObject

## Description

Deletes the object at the given ID, if the object doesn't exist then this command does nothing. Note that if the object was loaded with LoadObjectWithChildren then any child objects or animations that were created during that loading process will not be deleted by this command. You can use GetObjectChild and GetObjectAnimation to get and delete those items manually, or use DeleteObjectWithChildren to delete everything that was created when this object was loaded.

## Definition

DeleteObject( objID )

void agk::DeleteObject( UINT objID )

## Parameters

- objID - The ID of the object to delete.