You can remove this app’s access at any time in your Google Account’s “Third-party connections”.
1. Revoke Google OAuth access and delete local credentials
The following command first revokes the stored token at Google’s official revocation endpoint, then deletes only the Keychain entry and fallback credential file for this Desktop client. It does not start a new OAuth flow or operate on videos.
.venv/bin/python youtube_uploader.py \
--revoke-oauth \
--client-secrets "/安全な場所/client_secret_desktop.json"If revocation at Google cannot be confirmed because of a network issue or similar failure, local credentials are retained for a retry. If Google reports that the token is already invalid, unnecessary local credentials are deleted.
To revoke access manually, remove this app in your Google Account’s Third-party connections. Then also perform the local deletion in the next section.
2. Delete only local OAuth credentials, without contacting Google
.venv/bin/python youtube_uploader.py \
--purge-local-oauth \
--client-secrets "/安全な場所/client_secret_desktop.json"This operation deletes only the applicable credentials for this client and scope set from the following locations.
- macOS Keychain: service
TennisYouTubeUploader - Fallback: the matching file in
~/Library/Application Support/TennisYouTubeUploader/oauth/
This does not revoke Google-side permission. To fully disconnect, also complete section 1 or revoke access in your Google Account.
3. Delete the OAuth client JSON
The client_secret_desktop.json downloaded from Google Cloud is not copied into the credential storage managed by the Tool. When no longer needed, move the exact file you saved to Trash in Finder. Do not place it in a repository or shared folder.
4. Delete the upload ledger
The default ledger is the following file.
~/Library/Application Support/TennisYouTubeUploader/upload_ledger.jsonThe ledger contains video SHA-256 hashes, local paths, YouTube video IDs, caption IDs and processing times. Before deleting it, confirm no upload is in progress and identify the canonical videos and private test videos in YouTube Studio. Then move only this exact file to Trash in Finder.
Deleting the ledger does not delete videos on YouTube. It also removes the information used to prevent duplicates if the same video is uploaded later. For audit tests, use a separate --ledger path from the production ledger to keep test records separate.
5. Delete source videos, captions, thumbnails and manifests
These are ordinary local files in export folders. After checking necessary backups, participant sharing, published videos and audit records, move the relevant files to Trash in Finder. OAuth deletion commands do not delete these production files.
6. Delete videos on YouTube
Deleting the Tool’s credentials or ledgers leaves public and private YouTube videos in place. If deletion is needed, verify the video ID, title and visibility in YouTube Studio, then use YouTube’s deletion action for each video. For safety, the Tool does not automatically delete videos.
7. Response period and contact
Following a deletion request, relevant OAuth credentials and local data derived from the YouTube API are deleted promptly, and no later than seven days, unless an applicable retention obligation applies.
Public contact address:
david.liu.492@gmail.com