Access and deletion
Data Deletion
Revoke one authorized channel and remove locally retained API data with one explicit command.
Run locally
Revoke channel access
python -m pipeline.youtube_publish revoke <channel-alias>
What the command does
- Attempts to revoke the channel's Google OAuth grant through Google's documented revocation endpoint.
- Deletes the local per-channel OAuth token even if the remote result is uncertain.
- Clears resumable session URIs, remote video IDs, watch URLs, offsets, and legacy remote errors for that channel.
- Marks affected local uploads revoked and quarantines affected batches so no sibling silently continues.
If remote revocation is uncertain
Local deletion still runs immediately. The command exits nonzero and directs you to Google Account permissions to confirm remote revocation. No token is retained for a background retry.
Local deletion does not delete YouTube-held videos.
Revoking this client stops its access and removes local API response data. To delete a video or other data held by YouTube, open YouTube Studio and manage it there.
Independent revocation
You can revoke the grant at any time from Google's permissions page, without opening the client. Daily local maintenance validates stored grants and clears related local API data when a definitive revocation is detected.
Timing and support
Token deletion and local API-data clearing are attempted during the command. Incomplete resumable sessions also expire after no more than seven days. For deletion support, use the public support contact in the footer and identify only the non-secret channel alias; never send an OAuth token or client-secret file.
Related policies
See the Privacy Policy for the complete data inventory and the Terms of Service for the authorized-use boundary. Google's general handling is described in the Google Privacy Policy.