Our current FreePBX drive usage is reaching its total capacity. We are at 96% usage as of today, so I am looking to delete recording files older than 2 years.
I did not find an option at the GUI level, so I guess the only option would be accessing via SSH and deleting the files from there?
I found this command: “find /var/spool/asterisk/monitor/ -type f -mtime +730 -exec rm -f {} ;” but I am not sure if this will work or will mess anything else up.
Would you be able to recommend the best way of deleting these old recordings and keep anything other than 2 years old?
I ran that command, but since there are a lot of files I can’t see everything that will be deleted. Is there a way to copy maybe in a text file all of the information that I get when executing this command?
Thanks! I was able to access the file using FileZilla with root user/pwd and the data seemed ok to be deleted so I proceeded with the following command: find /var/spool/asterisk/monitor/ -type f -mtime +730 -exec rm -f {} ;