Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

pantheon-systems/pubsub-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PubSub Cleaner

Unsupported

Helps you clean up subscriptions on google PubSub

Installing

Use go get to install

go get -u github.com/pantheon-systems/pubsub-cleaner

Running

Clean out subscriptions on a topic:

pubsub-cleaner topic sometopic --project myproject --keep subname --no-op
  • --project is the GCE project.
  • --keep is a string match on subscriber names that you want to keep.
  • --no-op won't actually delete anything, just output what would be deleted

Authentication

This tool relies on Google Application Default Credentials, and honors the environment variables used by that.

read more here: https://developers.google.com/identity/protocols/application-default-credentials

Help

The program supports the standard -h and --help flags