How can I permanently delete hidden files/folders on Mac USB drive?

7,371

To prevent /.Spotlight files you must prevent Spotlight fron indexing external drives.

To do this for a specific drive add a file called .metadata_never_index to the root directory of the removable drive.

You can also completely prevent spotlight indexing but I figured that was not what you were looking for.

To prevent .DS_Store files from being created:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

More Info Here (And More files that you can prevent) and Here

Share:
7,371

Related videos on Youtube

gadgetmo
Author by

gadgetmo

Updated on September 18, 2022

Comments