ROM-DOS Commands 6-33
MX2A137REFGD Revision A MX2 Reference Guide
XDEL
Type
External
Purpose
The XDEL command deletes files and subdirectories including empty
subdirectories.
Syntax
XDEL filespec [/options]
Remarks
The XDEL command allows the deletion of files and subdirectories in
the same step.
The filespec argument is the starting point for the deletion. The filespec
argument can contain the drive and path for reaching the starting point
and can also contain wild card characters to designate a group of file or
directory names.
Options
The /D option deletes empty subdirectories. Deletion will not occur if
there are any files in the subdirectory, unless the /S option is specified
along with the /D option.
The /P option gives you a confirmation prompt before deleting each file.
The /R option allows deletion of read-only files without having to
change the file attributes prior to the delete.
The /S option deletes files in subdirectories located below the specified
starting directory. When used along with the /D option, it will delete the
files within a subdirectory along with the subdirectory entry itself.
Examples
The following examples will all use the diagram below as a reference:
DIR1
SUB1
sub1file.txt
SUB2
sub2file.txt
SUB3
dir1file1.txt
dir1file2.txt