rm | Remove entries from the name space |
<name> | | remove a name entry (any type, but no references to it) |
-fr <frame> <item> | | remove an item from a frame |
-ref <item> | | cut all the links to an item and delete it |
-r <dir> | recursive deleting; wildcard * can also be used |
This command removes name entries: fields, frames, structures and links between the frames and items. The basic command rm removes a name entry, which is not referred to by other frames. Instead of the general usage, you can also remove referred items with the flag -ref when all the links are deleted automatically. Also with the flag -fr an item can be deleted if the reference is the last one. With -r you can recursively delete directories and their contents. The sys structure is part of the name space and cannot be deleted.
Example:
NDA> load boston.dat ... # Remove the reference to a field from a frame, but do not delete # the field itself, if it is referred to by other frames NDA> rm -fr boston boston.crim ... # Remove a frame and all otherwise unreferenced fields under it NDA> rm boston ... # Remove a structure NDA> rm som1 ... # Clear the name space NDA> cd / NDA> rm -r *