gds_uninstall is a script tool used to uninstall GDS in batches.
gds_uninstall --host [/path/to/hostfile | ipaddr1,ipaddr2...] –U gds_user [--delete-user | --delete-user-and-group]
IP addresses of the nodes to be uninstalled. The value can be a file name or a string:
The user is deleted when GDS is uninstalled. The user to be deleted cannot be the root user.
When GDS is uninstalled, the user and the user group to which the user belongs are deleted. You can delete a user group only when the user to be deleted is the only user of the user group. The user group cannot be the root user group.
Uninstall the GDS folders and environment variables installed and deployed by the gds_test user on nodes 192.168.1.100 and 192.168.1.101.
gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101
The user is deleted when GDS is uninstalled.
gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101 --delete-user
During the uninstallation, the user and user group are deleted at the same time.
gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101 --delete-user-and-group