Appendices : Accessing the CLI

Deleting Nodes Using XML
To delete nodes or groups, use the deletenodes command.
sgms> deletenodes xml_file
Syntax
Table 99. Syntax
Usage Guidelines
The XML file should contain the following:
<? Xml version ="1.0" >
<Sgmscommand>
: <DeleteNodes>
: <DeleteNode displayname="displayname" viewname="viewname" deleteSAs="0" />
: </DeleteNodes>
</Sgmscommand>
 
Table 100. Usage guidelines
Example
In the following example, “Palo Alto 4” and all nodes within the specified groups are deleted:
sgms> activationcode node-delete.xml
The following is the content of node-delete.xml.
<? Xml version ="1.0" >
<Sgmscommand>
: <DeleteNodes>
: <DeleteNode displayname="Country=USA:State=California:Department=Engineering:Company=
: Silicon Valley" viewname="View All" deleteSAs="1" />
: <DeleteNode displayname="Palo Alto 4" viewname="View All" deleteSAs="0" />
: </DeleteNodes>
</Sgmscommand>