acleandir — clean up a directory containing netatalk Apple Macintosh files
acleandir cleans up the directory dirname. By default it simply removes "orphan" AppleDouble files, i.e. those which do not have a corresponding data file.
-dAlso remove the .AppleDouble directory if it contains no AppleDouble files after "orphan" removal. This will result in the finder location of dirname within its parent being lost.
-r, -RRecursive. Clean up directories recursively.
-nDisplay the filenames of "orphans" but don't remove any. Display size if "orphan" appears to contain a resource fork.
-iInteractive. Prompt for confirmation before a removal. A y in answer confirms that the removal should proceed.
-vVerbose. Display the names of all "orphans" and .AppleDouble directories removed. Reports the size if the "orphan" appears to contain a resource fork.
-aAggressive. Remove all AppleDouble files, not just
"orphans". Also remove the .AppleDesktop directory if
present. Impies -d option. Use with caution as the
Macintosh type/creator and finder location of all files will be lost
and the content of some documents, such as Symantec Projects, will
be destroyed.