Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019

Deleting a Non-Global Zone From the System

The procedure described in this section completely deletes a zone from a system.

How to Remove a Non-Global Zone

  1. Become a zone administrator.

    For more information, see Assigning Limited Rights to Zone Administrators.

  2. Shut down the zone my-zone using one of the following methods.

    The zoneadm shutdown method is preferred.

    • Using zoneadm:
      global$ zoneadm -z my-zone shutdown
    • Using zlogin:
      global$ zlogin my-zone shutdown
  3. Remove the root file system for my-zone.
    global$ zoneadm -z my-zone uninstall -F

    The –F option to force the action generally isn't required.

  4. Delete the configuration for my-zone.
    global$ zonecfg -z my-zone delete -F

    The –F option to force the action generally isn't required.

  5. List the zones on the system, to verify that my-zone is no longer listed.
    global$ zoneadm list -iv

    You will see a display that is similar to the following:

    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              solaris    shared