Hosted Vicidial server starts from $39 Contact Us Buy Now!

Troubleshoot bash: /bin/rm: Argument list too long

Estimated read time: 1 min

 Topic :  Deleting all recordings from vicidial or goautodial which has huge files in recording folders.

description: how to delete the recording files in vicidial
You might get below error while deleting the recordings in vicidial or goautodial using rm command(rm *.mp3 , rm *.gsm)


/bin/rm argument list too long

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



Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.