object userdirectory.delete(array userDirectoryIds)
This method allows to delete user directories. User directory cannot be deleted when it is directly used for at least one user group.
Default LDAP user directory cannot be deleted when
authentication.ldap_configured is set to 1 or when there are more user directories left.
This method is only available to Super admin user type.
(array) IDs of the user directories to delete.
(object) Returns an object containing the IDs of the deleted user directories under the
Delete two user directories.
CUserDirectory::delete() in ui/include/classes/api/services/CUserDirectory.php.