API Reference > OdDAI Namespace > Classes > Model Class > Model Methods > Model::deleteInstance Method
Model::deleteInstance Method
Syntax
C++
void deleteInstance(ApplicationInstance * pInstance);
Parameters 
Description 
ApplicationInstance * pInstance 
[in] A raw pointer to the entity instance to be deleted. 

Deletes a specified entity instance from the model.

When the method is called the specified instance is marked as deleted, but it still stays in the model. The deleted instance is not written to the file. During the next file reading operation, the instance will not be read from the file therefore it will be physically removed from the model.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.