Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 15
    This is non standard. GNU find have -delete, and other find maybe. Commented Apr 26, 2012 at 9:11
  • 16
    -delete should always be preferred to -exec rm when available, for reasons of safety and efficiency. Commented Apr 26, 2012 at 11:37
  • 12
    GNU is the de facto standard. Commented Mar 3, 2018 at 17:38
  • 4
    Just a warning - adding -delete to gnu find implicitly enables -depth, which takes you back to the problem of running out of memory during the scan. Commented Dec 11, 2020 at 0:05