Shell Commands/Delete

From MorphOS Library

Revision as of 11:06, 3 March 2015 by JPV (talk | contribs) (Created page with "'''Delete''' - Deletes one or more files/directories FILE/M/A, ALL/S, QUIET/S, FORCE/S, FOLLOWLINKS/S <nowiki> FILE - file, directory or pattern-matching files to del...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< 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.