Distributed Tuning Interface Reference : PvDropGroup()
 
PvDropGroup()
Drop an existing group from the database.
Header File: ddf.h (See also Header Files)
Function First Available In Library: w3dbav90.dll (Windows), libpsqldti.so (Linux), libpsqldti.dylib (macOS) (See also Link Libraries)
Syntax
PRESULT DDFAPICALLTYPE PvDropGroup(
   BTI_WORD            dbHandle,
   const BTI_CHAR*     group);
Arguments
 
In
dbHandle
Handle of an open database returned by PvOpenDatabase().
In
group
Database group name.
Return Values
 
PCM_Success
The operation was successful.
PCM_errFailed
The operation was not successful.
PCM_errInvalidAccountName
The specified group name does not exist.
PCM_errDatabaseHasNoSecurity
Database has no security
PCM_errSessionSecurityError
Database opened with insufficient privilege
PCM_errGroupNotEmpty
An user is associated with this group
Remarks
The following preconditions must be met:
You must first open a database successfully using PvOpenDatabase() as user 'Master'.
The associated database has database-level security enabled.
The group must already exist in the specified database.
The group cannot contain any members.
The following post condition must be met:
Use PvCloseDatabase() to free the resources.
See Also
PvCreateGroup()
PvAddUserToGroup()
PvRemoveUserFromGroup()
PvDropUser()
PvOpenDatabase()
PvCloseDatabase()