Anyone know what is the command line to use with contrab to empty or delete a folder? I already tried 0 0 * * * rm -f home/user/public_html/folder/ but got no sucess... I think rmdir only removes a folder if it is empty... Anyone can help me with this?
if you want to delete the folder including its contents: rm -rf /home/user/public_html/folder (no trailing slash; slash at the start of your path) if you want to remove everything in this folder, but leave the folder itself: rm -f /home/user/public_html/folder/*