Previous Next Chapter

DELETE command

Purpose:

This command is for deleting files and drawers (and their contents).

Format:

DELETE [NAME] <File or drawer name> [ALL]

Template:

DELETE NAME/A,ALL/S

Parameters:

NAME

Name of the file or drawer or volume to delete.

ALL

If the object in question is a drawer, attempt to delete the contents of the drawer as well as the drawer itself. If this option is not specified, the DELETE command will only attempt to delete the drawer itself, which may fail if the drawer is not yet empty.

Errors:

10 - If the named file, drawer or volume could not be found or could not be deleted.

Result:

-

Notes:

The file name given must be an absolute path, such as in RAM:Empty". A relative path, such as /fred/barney" will not work.

Example:

/* Delete the contents of the drawer RAM:Empty". */

ADDRESS workbench
DELETE ,RAM:Empty` ALL

Top Previous Next Chapter