Delete shell items.
DELETE [ /Variables ] [/unprotect] [ /Silent | /? ] [ /- ] item1 [ item2 … ]
- item1, item2
- name of the shell item to delete or name of a variable containing the name of shell item to delete (if
- If specified,
DELETEwill generate a warning rather than an error if arguments are missing or if it is unable delete the arguments.
- If specified,
DELETEwill remove any protection from the respective item before deleting. This is the only way of deleting a protected shell item. Note that, unlike most other options, the
/unprotectoption is case-sensitive meaning that you have to use the lower-case letter u to indicate that you are really serious.
- Indicates that the arguments are variable names containing the shell item name. The respective shell items are deleted, and the variables are then reset to empty.
DELETE command deletes the specified shell items. Some types of shell items (e.g. SPU items) cannot be deleted while they are active, causing an error to be emitted. If a display item is deleted, all items contained in the display are removed too (i.e. graphs and dialogs items). If a dialog item contained in a 'dialog only' display item is deleted, the display item is also removed. If a DDE conversation item (DDEConv) is removed, the conversation is ended before the item is deleted.
The completion code of the command (0 for success) is assiged to the variable RC and is also returned as result of the command.
// create a table item called "hugoItem", and store // this name in a variable called "#hugo" #hugo := new table hugoItem // table item "hugoItem" will be deleted *and* "#hugo" will be cleared delete /Var #hugo