From 83adcc0efd271c802bc59c36124b712fbfdc10b6 Mon Sep 17 00:00:00 2001 From: Ngoc To Date: Tue, 31 Oct 2017 14:54:22 +0900 Subject: [PATCH] delete all recorded audio file --- bottle/record/delete.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bottle/record/delete.py diff --git a/bottle/record/delete.py b/bottle/record/delete.py new file mode 100644 index 0000000..bedca2b --- /dev/null +++ b/bottle/record/delete.py @@ -0,0 +1,16 @@ +from twilio.rest import Client + +# Your Account Sid and Auth Token from twilio.com/user/account +account_sid = "" +auth_token = "" +client = Client(account_sid, auth_token) + +# A list of recording objects with the properties described above +for recording in client.recordings.list(): + #print(recording.sid) + id = recording.sid + uri = recording.uri + print("id uri =", id, uri) + #client.recordings(id).delete() + +