Setting a cron job for delete a directory every week


#1

Hello!

How can I set a cronjob for delete a directory every week? The directory that I need to delete would be in the path:

/home/cloudwaysappname/cloudwaysdirectory/public_html/directory1/directory2/directory_to_delete

In this example, I want to delete “directory_to_delete”.

Thank you for your help.


#2

https://www.google.com/search?q=How+can+I+set+a+cronjob+for+delete+a+directory+every+week