Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Deletes the specified EDMuser from the EDMdatabase. An EDMuser cannot be deleted from the database as long as the user is logged in, or the user owns any data in the database.
Use edmiChangeInstanceOwner to remove or to change the ownership of instances in the database.
This command is only permitted for the superuser.
This command is only permitted for the superuser.
Related function: edmiDeleteUserBN , edmiCreateUser .
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteUser(SdaiInstance userId);
Arguments:

userId

A numeric instanceID that uniquely identifies the EDMuser instance in the EDMdatabase.

Returns:
A completion code of data type EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
SdaiUser userId;
 
...
if (rstat = edmiDeleteUser(userId)) {
/* Error in operation */
printf("\nError: %s in edmiDeleteUser\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
printf("User %s deleted from the database\n", userId);
. . .

  • No labels