Summer Cleanup of Student Folders

Schools out, time to clean out the student network folders.  One could just use the GUI and kid by kid delete their files.  But that's inefficient.  Here is a much simpler way.

 

Fire up terminal or ssh into your server.

Now go to the class of xxxx folder

cd /Shared\ Items/Students/Class\ of\ 20xx

   *notice the \ before any space in the file name.

 

Run the following command inside the "Class of 20xx" folders:

sudo find . -mindepth 2 -delete

 This will list every file/folder inside of a student’s folder, and delete it with extreme prejudice.