CLI tool for deleting attachments from gmail messages
- Create GCP OAuth client ID credentials following these instructions: Create OAuth client ID credentials
- Download the credentials as
credentials.json
to the repo directory. - Install depedencies:
go get google.golang.org/api/gmail/v1
go get golang.org/x/oauth2/google
- Give it a go :p
go run remove-attachments.go 'size:10000000'