Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagecpp
themeConfluence
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

...

TypeNameComment
SdaiAppInstance

appInstance

A numeric instanceID that uniquely identifies the application instance to delete from the EDMdatabase.
The instanceID is defined by the sdaiCreateInstance or sdaiCreateInstanceBN function.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"