find /path/to/the/disk -type d -name "@eaDir" -delete
Notice that the order here is fundamental: quoting the manpage,
Warnings: Don't forget that the find command line is evaluated as an expression, so putting -delete first will make find try to delete everything below the starting points you specified.
So, as always, first try your find
command with -print
, then, when you checked that everything works fine, replace it with -delete
. Notice that -delete
implies -depth
, so, to do meaningful testing with -print
, you should explicitly specify it in the expression:
When testing a find command line that you later intend to use with -delete, you should explicitly specify -depth in order to avoid later surprises.