Page 1 of 1

command to delete the recording in vicidial

PostPosted: Tue Aug 16, 2011 6:53 pm
by usmanbutt001
hi william,

how r u hope u will fine.I want to know the command for delete the recording in vicidial /var/spool/asterisk/monitorDONE/ORIG ....how i delete the recording of wav format in vicidial 2.0.5



Thanks


Vicidial 2.0.5
asterisk 1.2.30

PostPosted: Tue Aug 16, 2011 8:16 pm
by williamconley
Should be in your crontab, but commented out (remove the #)

Code: Select all
### remove old recordings more than 7 days old
# 24 0 * * * /usr/bin/find /var/spool/asterisk/monitor -maxdepth 2 -type f -mtime +7 -print | xargs rm -f


will remove everything from /monitor/ over 7 days. if you want to use it to delete from a different folder ... change it.