Destroying an SMI Database deletes its command from Tcl and frees up all memory associated with all of the files, modules and other records previously loaded into the database. Destroying an individual record removes that record from the database and, if it is a container record such as a file, module, or conformance statement, then each of its contained records will also be destroyed (but not any records that are defined with OID values subordinate to the destroyed record).
% dbcmd destroy ?recordName?
dbcmd
recordName
smilib destroy
command deletes all records in the master database, but the smilib
command and database remains. Destroying any other database (e.g. smilib1 destroy
) results in that database being completely removed.
% smilib1 destroy
% smilib1 destroy EXAMPLE-MIB