Use the destroy subcommand to remove user-defined profiles and configuration objects such as NCUs. You cannot remove system-defined profiles, which include the following: the Automatic and DefaultFixed NCPs and the Automatic, NoNet, and DefaultFixed Locations. Note also that you cannot remove a profile that is currently active. You must first disable the profile, and then remove it.
The syntax for the destroy subcommand is as follows:
netcfg> destroy [ -a | object-type [ class ] object-name]
The –a option removes all of the user-defined profiles from the system, except for any currently active user-defined profiles.
The following procedure describes how to remove a user-defined profile interactively. For example purposes only, this procedure shows how to remove an IP NCU from the myncp user-defined NCP.
$ netcfg netcfg>
For example, to select the myncp NCP, you would type the following command:
netcfg> select ncp myncp netcfg:ncp:myncp>
In the following example, the net1 IP NCU is removed from the myncp NCP:
netcfg:ncp:myncp> destroy ncu ip net1 netcfg:ncp:myncp>
netcfg:ncp:myncp> exit
The previous example that shows how to interactively remove a profile can also be performed in command-line mode as follows:
$ netcfg "select ncp myncp; destroy ncu ip net1"