find: Delete Files

1 
1 3.4 Delete Files
1 ================
1 
1  -- Action: -delete
1      Delete files or directories; true if removal succeeded.  If the
1      removal failed, an error message is issued.
1 
1      The use of the '-delete' action on the command line automatically
1      turns on the '-depth' option (⇒find Expressions).  This can
1      be surprising if you were previously just testing with '-print', so
1      it is usually best to remember to use '-depth' explicitly.
1 
1      If '-delete' fails, 'find''s exit status will be nonzero (when it
1      eventually exits).
1