NEW pygooglevoice deleteForever() method

rxcomm

Guru
Joined
Sep 13, 2010
Messages
77
Reaction score
2
For those tired of deleting old phone calls, texts, etc. from their GV account by hand via the web interface, here is a patch to add a deleteForever() method to pygooglevoice:

Code:
https://github.com/rxcomm/pygooglevoice/commit/62c4130c902812f7e0cb6bd3ec1afef7b89d6bbc

You can then do the following to clear out your GV account:

Code:
#!/usr/bin/python
from googlevoice import Voice
from getpass import getpass
import sys

GOOGLEUSER = raw_input('gmail login: ')
PASSWORD = getpass('gmail passwd: ')

voice = Voice()
voice.login(GOOGLEUSER, PASSWORD)
#
while voice.sms().messages:
  for message in voice.sms().messages:
  message.delete()
#
while voice.placed().messages:
  for message in voice.placed().messages:
  message.delete()
#
while voice.received().messages:
  for message in voice.received().messages:
  message.delete()
#
while voice.missed().messages:
  for message in voice.missed().messages:
  message.delete()
#
while voice.voicemail().messages:
  for message in voice.voicemail().messages:
  message.delete()
#
while voice.trash().messages:
  for message in voice.trash().messages:
  message.deleteForever()

This will delete forever (modulo google's archiving policies) all messages in your gv account. Much faster than doing it via the web interface!
 

Members online

No members online now.

Forum statistics

Threads
25,825
Messages
167,856
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top