note aitap <p><b>man find</b>: <c>SYNOPSIS find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression] <...> find: paths must precede expression </c> So, first, move all your paths to search into before any expressions. Next, replace <c>-exec rm -rf {} ;</c> with <c>-ls</c> in order to debug your expression and make sure it finds only what you want to delete. Next, run and check that your command runs and returns expected results. Finally, move <c>-exec rm -rf {} ;</c> back in its place.</p> <p>You can also use [doc://find2perl] to make a Perl program from <c>find</c> expression or start manually using [doc://File::Find] instead.</p> <!-- Node text goes above. Div tags should contain sig only --> <div class="pmsig"><div class="pmsig-980564"> Sorry if my advice was wrong. </div></div> 998257 998361