Shell Commands/Delete

From MorphOS Library

< Shell Commands

Delete - Deletes one or more files/directories

FILE/M/A, ALL/S, QUIET/S, FORCE/S, FOLLOWLINKS/S

FILE        - file, directory or pattern-matching files to delete           
ALL         - if specified, deletes sub-directories as well
QUIET       - suppresses error/warning messages
FORCE       - if file is write-protected, un-protect it first
FOLLOWLINKS - if links are detected, will follow the links

NOTE: MorphOS 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.

Example: SYS:> Delete Dh0:not_important_stuff/#? ALL FORCE
         deletes all the files on Dh0:not_important_stuff,
         even those set as not deletable.

See also: Protect command.