Delete All .DS_Store files in directory

.DS_Store (Desktop Services Store) is a proprietary format hidden file created by Apple Inc.'s Mac OS X operating system to store custom attributes of a folder such as the position of icons or the choice of a background image. ()


To remove all DS_Store files in a specific directory:


    • Select Applications > Utilities to launch Terminal.

    • Enter the following UNIX command:
    sudo find <directory path> -name ".DS_Store" -depth -exec rm {} \;
    • When prompted for a password enter your Mac OS X Administrator password.


    No comments:

    Post a Comment