Delete Old FreePBX Monitor Recordings via Cron Job or Script

Use the following command via cron within Linux/FreePBX to purge monitor recordings regularly. In the example below we are deleting recordings older than 90 days (approx. 3 months).

find /var/spool/asterisk/monitor -name "*.wav" -mtime +90 -delete