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:
You can then do the following to clear out your GV account:
This will delete forever (modulo google's archiving policies) all messages in your gv account. Much faster than doing it via the web interface!
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!