I found a script online that works when entered into custom cronjobs on cpanel.
When i run this script, the code deletes the folder and everything within it.
rm -rf public_html/storage_area/images/
I would like to delete empty sub-folders housed within the images folder and not the actual images folder itself.
I do not have much technical knowledge so any help would be much appreciated. I have tried a few php scripts that i found online but did not have much luck so if there is something that exists even better.
Thank you for any assistance.