Artificial intelligent assistant

how to delete files in folder with thousands of files in the folder cd /var/log/hive I guess we have thundered of log files I say that because if I do under this folder ls -l then its stuck and only CNTRL C , will exit so I cant to vew all files in this case how to tryng to delete the files or the old files or what we can do else ?

To delete files (and folders) older than n days, you can use:


find /var/log/hive -mindepth 1 -mtime +n -delete


Note: Run without the `-delete` first to see what would be deleted.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a74f7328f4babd856422d5d5f70cc5b9