Description

Delete this McDBUser or McDBGroup object from its McDBDatabase.

Return Type

None  

Syntax

object.Delete

The Delete Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBRightsOwner.

Remarks

This method will delete (erase) this McDBRightsOwner (assuming the McDBDatabase.LoggedUser has IsAdministrator privileges). To change group membership or a user or group, use the group membership methods McDBGroup.RemoveMember(), McDBGroups::Remove(), or McDBUsers::Remove(), as appropriate.

Exceptions

Error Value Description
E_ACCESSDENIED &H80070005 The McDBDatabase.LoggedUser does not have McDBRightsOwner.IsAdministrator privileges.
E_UNEXPECTED &H8001FFFF A framework error occurred while attempting to delete this McDBRightsOwner.
E_FAIL &H80004005 This McDBRightsOwner is the Everyone group, which cannot be deleted.

Notes

The Everyone group may not be deleted.