[
    {
        "role": "user",
        "content": "I%20have%20thousands%20of%20google%20voice%20calls%20and%20I%27d%20like%20to%20delete%20them%20programatically.%20is%20there%20a%20cli%20tool%20for%20this%20or%20perhaps%20a%20python%20module%20or%20script%3F"
    },
    {
        "role": "assistant",
        "content": "Here\u2019s what I found about programmatically deleting Google Voice call logs / messages:\n\n---\n\n### \ud83d\udd0d What Google Voice officially allows\n\n- Google states that you *may delete* call history, voicemail messages (audio and/or transcriptions), SMS messages, and recorded conversations via your Google Voice account. However, \u201cbillable\u201d call history may still remain visible. ([policies.google.com](https://policies.google.com/technologies/voice?hl=or&utm_source=openai))  \n- There is **no official public API** from Google that supports programmatic deletion of Google Voice messages or call logs (for either the free/personal version or Google Workspace version). ([openphone.com](https://www.openphone.com/blog/google-voice-api/?utm_source=openai))\n\n---\n\n### \ud83d\udc0d Existing Python / CLI tools & their limitations\n\n- **`googlevoice` Python module** (also called \u201cpython-google-voice\u201d) is commonly used for voicemail, SMS, and retrieving message lists. It has some delete-like functionality: for instance, a `message.delete()` method. But it doesn't appear to support permanent deletion of call logs or bulk-deleting all calls via an API. ([googlevoice.readthedocs.io](https://googlevoice.readthedocs.io/en/latest/api.html?utm_source=openai))  \n- **jaraco/googlevoice** (PyPI / GitHub) is a fork / version of pygooglevoice. Currently, this tool is \u201cessentially broken\u201d due to changes in Google\u2019s login flows; it doesn\u2019t support deletion of call history programmatically. ([github.com](https://github.com/jaraco/googlevoice?utm_source=openai))\n\n---\n\n### \u26a0\ufe0f \u201cScripting\u201d via automation or unofficial means\n\n- Some users resort to scripting the browser (e.g. via Selenium or automated browser tools) to select all calls/messages and trigger the \u201cDelete\u201d or \u201cRemove call history\u201d buttons. This is fragile (UI changes may break it), but it is one of the few options since there's no official API. Reddit discussions suggest this is a common path. ([reddit.com](https://www.reddit.com/r/Googlevoice/comments/1161dsp?utm_source=openai))  \n- Some features in the UI: you *can* \u201cRemove call history\u201d from Settings \u2192 Calls. This deletes the visible list of calls. But whether this is \u201cpermanent deletion\u201d or a client-side hide of records isn\u2019t fully documented. ([reddit.com](https://www.reddit.com/r/Googlevoice/comments/lcrj9l?utm_source=openai))\n\n---\n\n### \u2705 So, is there a \u201creal\u201d CLI or Python script?\n\nNot officially. Because Google Voice has no public API for deleting call records or bulk deletion of call history, there\u2019s no fully-supported, stable CLI or Python library that just does that (in a supported, documented way).\n\n---\n\n### \ud83d\udca1 What *you could* do\n\nHere are the options, with pros and cons:\n\n1. **Browser automation**  \n   - Use tools like Selenium / Puppeteer to log in, navigate to `voice.google.com/calls`, select calls (or press \u201cRemove call history\u201d in settings), click delete.  \n   - Pro: Works today.  \n   - Con: Fragile to UI changes, may be against Terms of Service (use carefully).\n\n2. **Unofficial Python modules**  \n   - Explore `googlevoice` or `jaraco/googlevoice`, see if you can adapt them to work (if login still works) for deletion. Even if limited, they might help script message deletion.  \n   - Con: May require reverse-engineering. Could stop working if Google changes internal endpoints.\n\n3. **Manual via GUI**  \n   - Use the \u201cRemove call history\u201d in the UI, or select all calls in a browser via shift-click \u2192 delete.  \n   - Best for smaller sets, or periodic clean-up.\n\n4. **Feature request or find Workspace APIs**  \n   - If you're on Google Workspace, reach out to your admin or check if there are enterprise tools / logging that allow similar functionality (though I didn\u2019t find documented support as of 2026-04-14).\n\n---\n\nIf you like, I can help sketch out a script (e.g. using Selenium or Python) to automate deletion for your setup. Would you prefer I outline that (general flow + required credentials)?"
    }
]