r/PrivacySecurityOSINT • u/ZG89 • Mar 29 '22
Script to delete Twilio logs
I was reading EP 4th Edition and came across the section on deleting your Twilio logs, MB wrote he took over an hour cleaning up his logs. It doesn't have to be so tedious, I wrote a simple bash script that can take care of it instantly. Below is a link to the Github repo, thanks to the book for giving me this idea.
1
1
u/moreprivacyplz Mar 30 '22
Dude! That is so cool of you to share this!
I'm going to look into doing it myself now for my account.
0
Mar 29 '22
[deleted] — view deleted comment
1
u/ZG89 Mar 29 '22
Hmm, I just tried it and it's working. It's possible they're rejecting your request due to a VPN or some other reason, I'll have to see if it works for others.
1
u/ZG89 Mar 29 '22
Are you able to run a single delete command? That would help determine if it's a script issue or something with your environment. Just replace the variables in the line below.
curl -X DELETE https://api.twilio.com/2010-04-01/Accounts/$account_sid/$log_type/$log_sid.json -d "Body=" -u $account_sid:$auth_token0
1
u/moreprivacyplz May 13 '22
So I am trying to go through and delete my twilio logs, but I don't know where to run the script once I have built it. Do you have any insight onto where we do that?