In order to remove an HCI system, complete the following steps across all instances.
- Stop the run script using whatever method you used to start it.
For example, if you used systemd to run HCI.service, you would use the following commands to stop and disable it:sudo systemctl stop HCI.servicesudo systemctl disable HCI.serviceAdditionally, if you used systemd to run HCI, you must delete the HCI.service file you copied during install. Typically, it is copied to/etc/systemd/system.
- Run the following command to stop all HCI Docker containers on the instance:
sudo <installation-directory>/bin/stop
- Delete the HCI Docker containers.
- List all Docker containers:
sudo docker ps
- Note the container IDs for all containers that use a com.hds.ensemble or com.hitachi.foundry image.
- Delete the containers:
sudo docker rm <container-id>
- List all Docker containers:
- Delete the HCI Docker images.
- List all Docker images:
sudo docker images
- Note the image IDs for all images that use a com.hds.ensemble or com.hitachi.foundry repository.
- Delete the images:
sudo docker rmi <image-id>
- List all Docker images:
- Delete the HCI installation folder:
sudo <installation-directory>/bin/stop
For example:rm -rf /opt/hci