Topic : Deleting all recordings from vicidial or goautodial which has huge files in recording folders.
description: how to delete the recording files in vicidialYou might get below error while deleting the recordings in vicidial or goautodial using rm command(rm *.mp3 , rm *.gsm)
error: -bash: /bin/rm: Argument list too long
use the below commands to delete bulk recordings from the respective folder
Deleting MP3 files
cd /var/spool/asterisk/monitorDONE/MP3
find . -type f -name "*.mp3" | xargs -l500 rm -rf
Deleting GSM files
cd /var/spool/asterisk/monitorDONE/GSM
find . -type f -name "*.gsm" | xargs -l500 rm -rf
Deleting the wav files located in ORIG folder
cd /var/spool/asterisk/monitorDONE/ORIG
find . -type f -name "*.wav" | xargs -l500 rm -rf
*********************************
If you are using plain asterisk or Freepbx solution then your recordings will be located in below location
cd /var/spool/asterisk/monitor/
find . -type f -name "*.wav" | xargs -l500 rm -rf