Solaris 10: uninstall and delete a zone

Contributor Icon Contributed by qmchenry Date Icon May 19, 2005  
Tag Icon Tagged: Solaris system administration

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.

Previous recipe | Next recipe |
 
  • Lince
    zoneadm will confirm if you realy want to uninstall, use .F option to force it :)
  • RadhaKrishnan.M.P
    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
    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
blog comments powered by Disqus