Answer the question
In order to leave comments, you need to log in
How to delete all folders and files in a certain folder using Cron except the ones you need?
Greetings
I configured Cron to delete all files (folders) in a folder with the command:
rm -rf /home/.../site.ru/public_html/var/cache/registry/*
Answer the question
In order to leave comments, you need to log in
Try like this
You can do it without -delete first to see a list of what needs to be deleted.
You can do multiple finds.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question