System Administration Guide: Virtualization Using the Solaris Operating System

ProcedureHow to Delete a Zone Configuration

Use zonecfg with the delete subcommand to delete a zone configuration from the system.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.

  2. Delete the zone configuration for the zone a-zone by using one of the following two methods:

    • Use the -F option to force the action:

      global# zonecfg -z a-zone delete -F
    • Delete the zone interactively by answering yes to the system prompt:

      global# zonecfg -z a-zone delete
      Are you sure you want to delete zone a-zone (y/[n])? y