how to delete recordings

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

how to delete recordings

Postby corandyl » Mon Jan 17, 2011 11:51 am

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
corandyl
 
Posts: 25
Joined: Mon Jan 10, 2011 12:14 pm

Postby williamconley » Mon Jan 17, 2011 2:25 pm

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
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby boybawang » Tue Jan 18, 2011 1:02 am

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
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby corandyl » Tue Jan 18, 2011 12:21 pm

thank you for your reply guys!!!


you help me a lot...




thanks
corandyl
 
Posts: 25
Joined: Mon Jan 10, 2011 12:14 pm

Postby corandyl » Fri Jan 21, 2011 8:31 am

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?
corandyl
 
Posts: 25
Joined: Mon Jan 10, 2011 12:14 pm

Postby williamconley » Fri Jan 21, 2011 10:27 am

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby corandyl » Fri Jan 21, 2011 2:13 pm

thank you so much...
corandyl
 
Posts: 25
Joined: Mon Jan 10, 2011 12:14 pm

Re: how to delete recordings

Postby Faizankhan1995 » Tue Jul 30, 2019 2:00 pm

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.
Faizankhan1995
 
Posts: 14
Joined: Sat Jun 15, 2019 1:14 pm

Re: how to delete recordings

Postby williamconley » Tue Jul 30, 2019 2:27 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 101 guests