Deleting Groups in Bulk

Deleting Groups Using an XML File

The XML file created specifically for deleting multiple groups to the eG Enterprise system, should contain entries of the following format:

<?xml version="1.0" encoding="UTF-8"?>

<Group action="delete">

        <Element>

        <groupname><comma-separated list of groups></groupname>

          </Element>

    </Group>

For instance:

<?xml version="1.0" encoding="UTF-8"?>

<Group action="delete">

    <Element>

        <groupname>group1,group2,group3</groupname>

    </Element>

</Group>

Note that the XML tags are the same as the input parameters of the ‘DeleteGroup’ command supported by eG CLI (see Deleting a Group)

Once the XML file is created on the orchestrator’s host, invoke the following command from the orchestrator to update the eG manager with all the modifications contained in the XML file:

egcli deletegroup -managerid <ManagerID> -file <Fullpath_to_the_XML_file>

For example:

egcli deletegroup -managerid mgr153 -file E:\bulkdeletegroup.xml

Note:

  • Every Group specification should be included within the main <Group></Group> block only.
  • A single XML file should not contain more than one <Group></Group> block.
  • An XML file that is created for deleting groups should not include sections pertaining to any other operation.

Deleting Groups Using a CSV File

The CSV file created specifically for deleting multiple groups to the eG Enterprise system, should contain the following entries:

Element,action

Group,delete

groupname

<Names of the Groups>

.

.

.

For instance:

Element,action

Group,delete

groupname

group1

group2

group3

Once the CSV file is created on the orchestrator’s host, invoke the following command from the orchestrator to update the eG manager with all the modifications contained in the CSV file:

egcli deletegroup -managerid <ManagerID> -file <Fullpath_to_the_CSV_file>

For example:

egcli deletegroup -managerid mgr153 -file E:\bulkdeletegroup.csv