the command to delete the files would be
sudo rm -r /Users/<username>/Documents/*
sudo rm -r /Users/<username>/Movies/*
sudo rm -r /Users/<username>/Music/*
etc...
to make it run once a month/week/etc... you add it to the system crontab, although maybe a better way to do it would be to add it to the startup items so that it would delete the contents of the folders every boot??
to add it to the system crontab you need to edit the file /etc/crontab
I would just do a google search for 'Mac OS X how to use cron crontab' or something like that. There are many options available for scheduling.
To make it happen on every launch you need to create a "startup item"
The easiest way to do this is to make a copy of one of the Apple startup items.. /System/Library/IFCStart is a good one because its simple... just make a copy of the folder and place it in /Library/Startup Items and then edit the IFCStart file and put the new commands into the text file. The text file needs to have the exact same name as the enclosing folder for it to work. For more information do a search for "Launch Services" or "Startup Items" at
www.macosxhints.com or google or ??
Actually you might want to just search
www.versiontracker.com for something that will do this type of thing with a gui.