Delete the interface first (if the interface is assigned in the vlan)
Switch (configuration) #int ra f0/ 1-5
Switch (configuration -if)# No switch port accesses vlan 20.
Switch (Configuration -if)# Exit
Then delete the configuration interface.
Switch (configuration) #no int vlan 20
Delete VLAN
Switch (configuration) # does not have vlan 20.