Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

How 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 or a user in the global zone with the security rights profile to perform this procedure.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  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