Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete Mac .DS_Store files on windows [closed]

Similar to this question, I want to get rid of all hidden Mac .DS_Store files on a windows machine. Browsing to the folder and manually deleting them one by one is cumbersome and very time consuming. The following command does delete a .DS_Store file, but not recursively:

del .DS_Store
like image 216
Kurt Van den Branden Avatar asked Nov 11 '16 10:11

Kurt Van den Branden


People also ask

How do I delete DS_Store files on a Mac?

To delete all DS_Store files on the desktop, enter cd desktop and press Enter. To delete all DS_Store files on other folders, type cd followed by a space, drag the folder icon to Terminal, and press Enter. Type the following command and hit Enter. find . –name '.DS_Store' –type f –delete Select OK. Open Finder > Applications > Utilities > Terminal.

How can I see the DS_Store on a Mac?

You can see the ds_store from archived files received from other Mac users. The ds_store does not cause any harm on the device however, there can be some inconveniences particularly in file operations like file copying.

How do I delete a corrupted DS_Store file?

To delete a corrupted .DS_Store file, you will need to use Terminal.app. Note: You must be logged into macOS as an administrator. Open a new Finder window and navigate to the Applications folder on the left.

How to disable DS_Store on shared network drives in macOS?

Although you can't stop macOS from generating the DS_Store files on local drives, you can disable the automatic creation of DS_Store files on shared network drives by following these steps: Open Finder > Applications > Utilities > Terminal. Execute the following command: defaults write com.apple.desktopservices DSDontWriteNetworkStores true


1 Answers

Run the following command in the folder where you want to remove the .DS_Store files. It will delete them recursively.

del /s /q /f /a .DS_STORE
like image 108
Kurt Van den Branden Avatar answered Oct 23 '22 10:10

Kurt Van den Branden