I need a script to delete local home directories after 5 days

I need a script that delete local home directories after 5 days of creation.
I have a Lab with 25 iMacs running OS 10.2.8 I’m running an application
called AdmitMac that call for home directories to be created when a user
logs in. I need to remove them after a period of time.




you actually might want to look into using a unix app that is standard on OS X via terminal called cron.
It is a maintenance utility that allows you to schedule terminal commands, like every 5 days delete this user dir.
There are a bunch of gui based cron managers out there just do a search on versiontracker for cron.
I think this is better for you than writting an applescript.
Here is a url that explains it all: http://www.unixgeeks.org/security/newbie/unix/cron-1.html
Hope that helps,