edmiDeepDeleteInstance
Â
EdmiError edmiDeepDeleteInstance(SdaiAppInstance appInstance);
Deletes a specified instance from the EDMdatabase. All instances in the same data model that is only referenced by the actual instance to delete, will also be deleted (deep delete). This operation is only applicable to application instances. The actual instance cannot normally be deleted if it is referenced by another instance, i.e. the actual instance has at least one relation with another instance. All references to the actual instance must be deleted before this operation can be successfully performed. The function edmiDeleteInstanceReferences can be used to delete all references to an instance, or the references can be deleted one by one by the appropriate operations. The actual data model that locates the instance to be deleted must be open for write access, before this function can be successfully performed.
Arguments
Type | Name | Comment |
SdaiAppInstance | appInstance | A numeric instanceID that uniquely identifies the application instance to delete from the EDMdatabase. |
Return Value
Â
Options
 Â
Â
Example
Â
EdmiError rstat; SdaiAppInstance appInstance; ... if (rstat = edmiDeepDeleteInstance appInstance)) { /* Error in operation */ printf("\nError in edmiDeepDeleteInstance: %s\n", edmiGetErrorText(rstat)); goto error; }
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â