Page 1 of 1

how to delete recordings

PostPosted: Mon Jan 17, 2011 11:51 am
by corandyl
my HDD is in 95% and i want to delete .wav file
how am i going to delete the 7 year old recordings???






VERSION: 2.0.5-173
BUILD: 90320-0424
Asterisk 1.2.30.2

PostPosted: Mon Jan 17, 2011 2:25 pm
by williamconley
there is an entry in crontab (has /usr/bin/find in it) which may be "commented out" with a leading #. Remove the # ...

You can also run the same command from the command line if you want to limit the results to a date later than the crontab entry (which may delete everything 7 days and over ... or 2 days and over ... depending on your installed version).

to find it (and activate it permanently!)
Code: Select all
crontab -e


to just run the command
Code: Select all
/usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +2 -print | xargs rm -f
which will remove old recordings more than 7 days old

PostPosted: Tue Jan 18, 2011 1:02 am
by boybawang
rm -rf /var/spool/asterisk/monitorDONE/ORIG && mkdir -p /var/spool/asterisk/monitorDONE/ORIG

the files inside the ORIG folder are the ones that are bigger in size compared to the ones in the MP3 folder

PostPosted: Tue Jan 18, 2011 12:21 pm
by corandyl
thank you for your reply guys!!!


you help me a lot...




thanks

PostPosted: Fri Jan 21, 2011 8:31 am
by corandyl
Code: Select all
rm -rf /var/spool/asterisk/monitorDONE/ORIG && mkdir -p /var/spool/asterisk/monitorDONE/ORIG


Does this code will delete all .wav files only?

PostPosted: Fri Jan 21, 2011 10:27 am
by williamconley
it will delete all the files in THAT folder (which is likely only WAV files). it will also delete the folder and then recreate it.

PostPosted: Fri Jan 21, 2011 2:13 pm
by corandyl
thank you so much...

Re: how to delete recordings

PostPosted: Tue Jul 30, 2019 2:00 pm
by Faizankhan1995
I have deleted recordings from
Code: Select all
/var/spool/asterisk/monitorDONE
Folder. But the recording link is still available in agent stats and i can download and listen the recording. Is there some other place from where this recording is being fetched ?

Regards.

Re: how to delete recordings

PostPosted: Tue Jul 30, 2019 2:27 pm
by williamconley
many systems push to an external URL via FTP. Some even push to a different location on the same server or cluster via FTP. There is often a /home folder with an archive folder containing a recordings folder. (/home/archive/RECORDINGS). But if you shared the URL from an example recording (without the domain or IP and with the actual filename), it will be possible to lead you to where the file in question is. May take a few steps (such as finding the server in question, checking the apache folder directives and possibly aliases ...).


You can also try "updatedb" and then "locate XXXXXX" (replace XXXXXX with the actual filename) to see where on your HD these files are hiding.