home *** CD-ROM | disk | FTP | other *** search
- DELETE
-
- Deletes files or directories.
-
- Format
-
- DELETE {<name | pattern>} [ALL] [QUIET] [FORCE]
-
- Template
-
- FILE/M/A,ALL/S,QUIET/S,FORCE/S
-
- Location
-
- C:
-
- DELETE attempts to erase the specified items. You can delete multiple items
- at the same time by listing them individually or by using a wildcard to
- delete a specific set of files matching a pattern. The pattern can specify
- directory levels, as well as names. To abort a multiple-item DELETE, press
- Ctrl+C. A multiple-item DELETE aborts if and when it finds something that
- cannot be removed; for example, a file is delete-protected or in use. A
- pattern matching DELETE removes everything it can and lists the items that it
- did not delete, if any.
-
- Note:
-
- AmigaDOS does not request confirmation of deletions. Do not use pattern
- matching to delete things if your are not familiar with the procedure;
- deleted items cannot be recovered, unless you have an up-to-date backup of
- the items deleted.
-
- An error message warns you that you cannot delete directories that still
- contain files. Override this using the ALL option. DELETE ALL deletes the
- named directory, its subdirectories, and all files.
-
- File names are displayed on the screen as they are deleted. To suppress the
- screen output, use the QUIET option.
-
- If the d (deletable) protection bit of a file or directory has been cleared,
- that item cannot be deleted unless the FORCE option is used.
-
- Example 1:
-
- 1> DELETE Old-file
-
- deletes the file named Old-file in the current directory.
-
- Example 2:
-
- 1> DELETE Work/Prog1 Work/Prog2 Work
-
- deletes the files Prog1 and Prog2 in the Work directory and then deletes the
- Work directory if it contains no other files.
-
- Example 3:
-
- 1> DELETE T#?/#?(1|2)
-
- deletes all the files that end in 1 or 2 in directories that start with T.
-
- Example 4:
-
- 1> DELETE DF1:#? ALL FORCE
-
- deletes all the files on DF1:, even those set as not deletable.
-
- See also: PROTECT. For more examples using DELETE, see Chapter 8.
-