home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / delete.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.9 KB  |  69 lines

  1. DELETE
  2.  
  3. Deletes files or directories.
  4.  
  5. Format
  6.  
  7. DELETE {<name | pattern>} [ALL] [QUIET] [FORCE]
  8.  
  9. Template
  10.  
  11. FILE/M/A,ALL/S,QUIET/S,FORCE/S
  12.  
  13. Location
  14.  
  15. C:
  16.  
  17. DELETE attempts to erase the specified items. You can delete multiple items
  18. at the same time by listing them individually or by using a wildcard to
  19. delete a specific set of files matching a pattern. The pattern can specify
  20. directory levels, as well as names. To abort a multiple-item DELETE, press
  21. Ctrl+C. A multiple-item DELETE aborts if and when it finds something that
  22. cannot be removed; for example, a file is delete-protected or in use. A
  23. pattern matching DELETE removes everything it can and lists the items that it
  24. did not delete, if any.
  25.  
  26. Note:
  27.  
  28. AmigaDOS does not request confirmation of deletions. Do not use pattern
  29. matching to delete things if your are not familiar with the procedure;
  30. deleted items cannot be recovered, unless you have an up-to-date backup of
  31. the items deleted.
  32.  
  33. An error message warns you that you cannot delete directories that still
  34. contain files. Override this using the ALL option. DELETE ALL deletes the
  35. named directory, its subdirectories, and all files.
  36.  
  37. File names are displayed on the screen as they are deleted. To suppress the
  38. screen output, use the QUIET option.
  39.  
  40. If the d (deletable) protection bit of a file or directory has been cleared,
  41. that item cannot be deleted unless the FORCE option is used.
  42.  
  43. Example 1:
  44.  
  45. 1> DELETE Old-file
  46.  
  47. deletes the file named Old-file in the current directory.
  48.  
  49. Example 2:
  50.  
  51. 1> DELETE Work/Prog1 Work/Prog2 Work
  52.  
  53. deletes the files Prog1 and Prog2 in the Work directory and then deletes the
  54. Work directory if it contains no other files.
  55.  
  56. Example 3:
  57.  
  58. 1> DELETE T#?/#?(1|2)
  59.  
  60. deletes all the files that end in 1 or 2 in directories that start with T.
  61.  
  62. Example 4:
  63.  
  64. 1> DELETE DF1:#? ALL FORCE
  65.  
  66. deletes all the files on DF1:, even those set as not deletable.
  67.  
  68. See also: PROTECT. For more examples using DELETE, see Chapter 8.
  69.