The steps below are the process of clearing all zoning configurations on an CISCO switch.

Note: Ensure this is a standalone switch; if it is connected to other switches in the fabric then you may potentially affect the entire fabric.

1. Firstly determine the names of the active zonesets for each vsan. In this example we will clear down all the zoning associated with the zonset “vsan10_fabricA” on vsan 10:

# show zoneset active | i zoneset
zoneset name vsan10_fabricA vsan 10

2. Next you will need to deactivate the zoneset “vsan10_fabricA” on vsan 10:

# conf t
(config)# no zoneset activate name vsan10_fabricA vsan 10
Enhanced zone session has been created. Please ‘commit’ the changes when done.
(config)# zone commit vsan 10
Commit operation initiated. Check zone status

3. Remove the zonset “vsan10_fabricA” from the configuration:

(config)# no zoneset name vsan10_fabricA vsan 10
(config)# zone commit vsan 10
(config)# show zoneset active
Zoneset not present

4. Clear all the zones from the database associated with vsan 10:

# clear zone database vsan 10
Enhanced zone session has been created. Please ‘commit’ the changes when done.
(config)# zone commit vsan 10
(config)# show zone
Zone not present
# show fcalias
Alias not present

5. Clear any device alias entries:
(config)# clear device-alias database
(config)# device-alias commit
(config)# show device-alias database

6. Exit config mode, save your running config to startup and reload the switch:

(config)# exit
# copy run startup-config
[########################################] 100%
Copy complete, now saving to disk (please wait)…
# reload