Home Forums OS X Server and Client Discussion Questions and Answers Disk quota problem: batch delete users cache folder

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #369892
    nipodrom
    Participant

    Hi!

    Need your help. How can I delete the cache folder of multiple user home directories via automatically executed shell script on a Mac OS X Server?

    Example:

    The userdata are stored on a Xsan Volume like this:

    /Volumes/Xsan/userdata/mike
    /Volumes/Xsan/userdata/peter
    /Volumes/Xsan/userdata/robert
    /Volumes/Xsan/userdata/dave
    /Volumes/Xsan/userdata/michael

    … etc. (total 1629 user home directories)

    and in every userfolder is the same folder structur:

    Desktop, Documents, Library, Movies, Music, Pictures and Public

    The folder which should be removed is:

    /username/Library/Caches

    The script should go through all 1629 user home directories and delete the entire cache folder. I would like to run this script automatically as a cron job in the night.

    I’m open for any ideas to solve this disk quota problem. Thanks in advance for your help.

    With best regards,

    Mike

    #370825
    craprock
    Participant

    bump. i’m looking for the same exact solution, actually. anyone have any ideas? my edu SE said to look here first. 🙂

    #371012
    jrr316
    Participant

    Check out Server Cleanup by Mark Gabrenas:

    http://web.mac.com/bancher/My_Utilities/Home.html

    Great utility!

    -Justin Redden
    ACTC 10.4

    #371061
    craprock
    Participant

    thanks!!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed