How to delete recordings?

60 views
Skip to first unread message

e-nDrju

unread,
Jan 15, 2016, 9:03:15 AM1/15/16
to 2600hz-users
Hi
Is there any way to delete recordings saved by Kazoo? There is no option of deleting it in GUI. Maybe there is an API command which I have missed? Thank you in advance for any help.

Joshua Laroff

unread,
Jan 15, 2016, 9:19:45 AM1/15/16
to 2600hz...@googlegroups.com
Hello,
You can use the API:
curl -X DELETE -H "X-Auth-Token: <your_auth_token>" http://your.api.address:8000/v2/accounts/<account_id>/media/<media_id>

This link has more information on the media API endpoint:

Josh

On Fri, Jan 15, 2016 at 8:56 AM, e-nDrju <djend...@gmail.com> wrote:
Hi
Is there any way to delete recordings saved by Kazoo? There is no option of deleting it in GUI. Maybe there is an API command which I have missed? Thank you in advance for any help.

--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

e-nDrju

unread,
Jan 15, 2016, 9:56:26 AM1/15/16
to 2600hz-users
Hi
Thanks a lot for your answer.

I have one more problem.

Recordings are pushed to S3 by FreeSwitch. Is there any way to determine, if the file I want to delete has already been sent to S3?

Joshua Laroff

unread,
Jan 15, 2016, 2:30:41 PM1/15/16
to 2600hz...@googlegroups.com
Sorry I thought you meant media like uploaded music on hold. I didn't realize you meant call recordings.
Josh

e-nDrju

unread,
Jan 15, 2016, 2:35:41 PM1/15/16
to 2600hz-users
Oh thats ok thanks anyway. Maybe someone else has a solution for this.

e-nDrju

unread,
Jan 19, 2016, 4:43:44 PM1/19/16
to 2600hz-users
Anybody?

Darren Schreiber

unread,
Jan 19, 2016, 4:44:24 PM1/19/16
to 2600hz...@googlegroups.com
If the recordings are stored on S3, isn't that where you should delete them? I don't understand what this has to do with Kazoo?

Andrzej Szypulski

unread,
Jan 19, 2016, 4:46:37 PM1/19/16
to 2600hz...@googlegroups.com
Actually I`m working on this:

1. Freeswitch uploads recordings on S3.
2. If upload has been completed, delete a local file.

Is there any way to do that with Kazoo? Or is it necessary to do that using an external script out of Kazoo.

--
You received this message because you are subscribed to a topic in the Google Groups "2600hz-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/2600hz-users/u0O521H_Jc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 2600hz-users...@googlegroups.com.

Darren Schreiber

unread,
Jan 19, 2016, 4:47:15 PM1/19/16
to 2600hz...@googlegroups.com
Ahh, I see.

In CentOS:

yum install tmpwatch

Since the files go into /tmp/ they will automatically be cleaned out after the configured number of days for the tmpwatch tool. It's very configurable, you can google it. That should be sufficient I would think.
Reply all
Reply to author
Forward
0 new messages