I have a script that I run every week via a cron that delete loads of temp files on my web servers but I've just notice that the script is not removing the folders which are still taking up space. 

Whats the best to amend the script to delete the folders as well? 

```
find /my/path/ -type d –ctime +5 –exec rm -r {} \;

#!/bin/bash
# Deletes temp files older then 5 days
DOCS='/var/www/user/docs/temp'
SCRATCH='/var/www/user/temp/scratch'

if [ -d "$DOCS" ]; then
find $DOCSJS -type f -mtime +5 -exec rm -rf {} \; > /tmp/docs.txt
fi
if [ -d "$SCRATCH" ]; then
find $SCRATCH -type f -mtime +5 -exec rm -rf {} \; > /tmp/docs.txt
fi

```

My script actually has -rf as a flag to delete all folders.

One point to note is that the folders aboves are symbolic links to `/mnt/sdb1/docs/js` and `/mnt/sdb1/temp/scratch` - would the script follow the symbolic link or should I hard code this to the mount?