Cant delete all files in directors lsphp/session

Everytime when creating vps I will add this cron job command find /var/lib/lsphp/session -type f -cmin +24 -name "sess_*" -exec rm -f {} \; to delete old session files, for some reason the old files are not deleted, leading to memory loss.
I forgot for 1 vps and now it is taking ~30Gb of memory for session files
I tried the commands rm -rf * and rm -rf lsphp74 waiting for a long time and the result is that the memory is out of memory and the session files are not deleted!
my vps 2 vCPUs, 2Gb ram and 80 GB NVMe
Is there any command to delete large files located in /var/lib/lsphp/session/lsphp74 directory?

Set this cron as rrot cron and try simple user cant do that

After 2 hour run with find /var/lib/lsphp/session/lsphp74 -type f -cmin +24 -name "sess_*" -exec rm -f {} \; 50% files is deleted. will run until it’s done

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.