edmiDeleteGroup
Â
EdmiError edmiDeleteGroup(SdaiInstance groupId);
Deletes the specified EDMgroup from the EDMdatabase. An EDMgroup cannot be deleted from the EDMdatabase as long as an EDMuser is connected to the EDMserver with this EDMgroup account. Neither can it be deleted if the EDMgroup is the owner group of any object in the database. If an EDMuser has created repositories, models or instances in the database when connected with the specified EDMgroup account, the created objects will be owned by that EDMgroup. As long as such objects exists in the database, the EDMgroup may not be deleted. Use edmiChangeInstanceOwner to remove or to transfer ownership to another EDMgroup. This command is only permitted for the superuser.
Arguments
Type | Name | Comment |
SdaiInstance | groupId | A numeric groupID that uniquely identifies the edm_group instance to be deleted in the EDMdatabase. |
Return Value
Options
Â
Option | Comment |
---|
Example
Â
 EdmiError rstat; SdaiGroup groupId; ... rstat = edmiGetGroupBN("SUPERVISOR", &groupId); if (rstat = edmiDeleteGroup (groupId)) { /* Error in operation */ printf("\nError in edmiDeleteGroup: %s\n", edmiGetErrorText(rstat)); goto error; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â