Home > Working with SGWorld > Creator (ICreator6) > DeleteObject

DeleteObject

Deletes an object from the terrain.

 

JavaScript

 

DeleteObject(

      ObjectID)

 

C#

 

void DeleteObject(

      string ObjectID)

 

C++

 

HRESULT DeleteObject(

      BSTR ObjectID)

Parameters

ObjectID

The ID of the object to be deleted.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.