version 6.7.1 (Modified)
DELETE DOCUMENT (document)
Parameter | Type | Description | |
document | String | Document name or | |
Full document pathname |
Description
The DELETE DOCUMENT command deletes the document whose name you pass in document.
If the document name or the entered path name is incorrect, an error is generated. This is also the case if you try to delete an open document.
DELETE DOCUMENT doesn't accept an empty string argument for document. If an empty string is used, the Open File dialog box is not displayed and an error is generated.
WARNING: DELETE DOCUMENT can delete any file on a disk. This includes documents created with other applications as well as the applications themselves. DELETE DOCUMENT should be used with extreme caution. Deleting a document is a permanent operation and cannot be undone.
Examples
1. The following example deletes the document named Note:
DELETE DOCUMENT ("Note") ` Delete the document
2. See example for the command APPEND TO CLIPBOARD.
System Variables or Sets
Deleting a document sets the OK system variable to 1. If DELETE DOCUMENT can't delete the document, the OK system variable is set to 0.