Solaris 10: uninstall and delete a zone
When you want to remove a non-global zone from your Solaris 10 installation, you’ll need to follow the following steps.
If you want to completely remove a zone called ‘testzone’ from your system, login to the global zone and become root. The first command is the opposite of the ‘install’ option of zoneadm and deletes all of the files under the zonepath:
zoneadm -z testzone uninstall
At this point, the zone is in the configured state. To remove it completely from the system use:
zonecfg -z testzone delete
There is no undo, so make sure this is what you want to do before you do it.











Lince said on November 24, 2008
zoneadm will confirm if you realy want to uninstall, use .F option to force it :)
RadhaKrishnan.M.P said on December 4, 2008
to Delete the Zone.Above mentioned command won’t work.
First you need to enter the configuration mode using following command.
zonecfg -z testzone “Enter”
zonecfg:testzone>delete “Ctl+D” ( to save the changes )
# zoneadm list -vc ( to check the testzone is removed permanently )
Uday Kumar Kunta said on March 30, 2009
If the zone status is “installed/incomplete”, please use the below command:
zoneadm -z myzone1 uninstall –F
zonecfg -z myzone1 delete
If the zone status is “configured”, please use the below command:
zonecfg -z myzone2 delete
Anonymous said on May 11, 2010
I had to halt the zone prior to removing it. I also had to use the -F option.
random_eman said on June 22, 2010
need to halt the zone first
Imastanrao said on September 2, 2010
If the zone status is “installed/incomplete”, please use the below command:
zoneadm -z myzone1 uninstall –F
zonecfg -z myzone1 delete
If the zone status is “configured”, please use the below command:
zonecfg -z myzone2 delete