Deletes an item from the disk file and returns control to TCL.
Caution
When using this command, you need to be aware of the effects of any file triggers that might be run as consequence. See File Triggers for more information.
FD{K}{O}
K indicates that you wish to terminate the item list.
O indicates that you wish to suppress the double check message.
Before the Editor deletes the item, it displays the following message:
-FD? Sure (Y/N)?
To delete the item, type Y
and press RETURN. To
cancel the FD command (retain Editor control), press
RETURN only, or
type N and press RETURN. To suppress this message, use the O parameter.
This message does not display if the Editor is invoked by the Proc processor.
When the item has been deleted, the following message is displayed:
'item-id' deleted from file 'file-name'.
Note that FD does not delete files; it deletes individual items. You must use the TCL command DELETE-FILE to delete files.
To terminate a multiple item editing session after you delete an item but before you edit the last item in the list, use the FDK command.
Recovery of mistakenly deleted items is discussed in the description of the RECOVER-FD command.
:ED TEST T1 T2 T3 |
Request to delete item T1. You are prompted to confirm the deletion. Entering Y deletes the item. |
:ED TEST T1 T2 T3 |
Request to delete item T1 from an item list and return to TCL. You are prompted to confirm the deletion. Entering Y deletes the item and returns control to TCL. |
:ED MD T3 |
Request to delete item T3. No prompt is displayed. Item T3 is deleted. |