Under file system moodledata directory got a sub folder called lock, what is it? Safe to delete?
Star
Long answer... it's the file based locking described here - https://docs.moodle.org/dev/Lock_API
You can delete it but I would stop cron and wait a while first just to be safe.
Begs the question why you want to do this though?
Thank you very much for the answer.