{"id":18451916,"url":"https://github.com/skynewz/gmail-cleaner","last_synced_at":"2025-04-19T23:21:52.264Z","repository":{"id":144291291,"uuid":"164020921","full_name":"SkYNewZ/gmail-cleaner","owner":"SkYNewZ","description":"Simple app to mass deletion or trashing email writen in Go language","archived":false,"fork":false,"pushed_at":"2019-01-04T18:35:23.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-25T03:40:34.649Z","etag":null,"topics":["gmail","gmail-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SkYNewZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-03T20:42:08.000Z","updated_at":"2021-05-21T18:40:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5286552c-5bae-4d87-8dad-cb97a5f43272","html_url":"https://github.com/SkYNewZ/gmail-cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkYNewZ%2Fgmail-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkYNewZ%2Fgmail-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkYNewZ%2Fgmail-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkYNewZ%2Fgmail-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkYNewZ","download_url":"https://codeload.github.com/SkYNewZ/gmail-cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239139704,"owners_count":19588246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gmail","gmail-api"],"created_at":"2024-11-06T07:29:46.535Z","updated_at":"2025-02-16T14:14:36.070Z","avatar_url":"https://github.com/SkYNewZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gmail Cleaner command line\n\nSimple app to mass deletion or trashing email writen in Go language\n\n## Requirement\n\n* [Go](https://golang.org/)\n* Credentials for using GmailApi. Follow beginning of [this guide](https://developers.google.com/gmail/api/quickstart/go#step_1_turn_on_the)\n\n## Install\n\n### Manually\n\n\u003e You need [Dep](https://github.com/golang/dep) to install dependencies\n\n```bash\ngit clone https://github.com/SkYNewZ/gmail-cleaner.git\ncd gmail-cleaner\ndep ensure\n```\n\nYou can now run it by doing `go run main.go` or build `go build -o gmail-cleaner` and execute `./gmail-cleaner`\n\n### Automatically\n\n```bash\ngo get -u github.com/SkYNewZ/gmail-cleaner\n```\n\n## Usage\n\n```bash\n$ gmail-cleaner --help\nUsage:\n  main [OPTIONS]\n\nApplication Options:\n  -s, --search=           Search criteria\n  -d, --delete            Delete messages ?\n      --credentials-file= Credentials file path as json for using GmailAPI (default: credentials.json)\n\nHelp Options:\n  -h, --help              Show this help message\n```\n\n\u003e You can use multiple `--search`\n\u003e For example, if your `credentials.json` is located into your `$HOME`, run `gmail-cleaner --credentials-file ~/credentials.json ...`\n\n## Example\n\n```bash\n# Trash all messages from \"github.com\"\ngmail-cleaner --search \"from:(github.com)\" --credentials-file ~/credentials.json\n\n# Delete **permanently** messages with subject \"[GitHub] A third-party OAuth application has been added to your account\"\ngmail-cleaner --search \"subject:([GitHub] A third-party OAuth application has been added to your account)\" --delete --credentials-file ~/Downloads/credentials.json\n\n# Delete **permanently** messages with subject \"[GitHub] A third-party OAuth application has been added to your account\" and messages from \"github.com\"\ngmail-cleaner --search \"from:(github.com)\" --search \"subject:([GitHub] A third-party OAuth application has been added to your account)\" --credentials-file ~/credentials.json --delete\n```\n\n\u003e For more details about the Gmail search engine, checkout [docs](https://support.google.com/mail/answer/7190)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskynewz%2Fgmail-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskynewz%2Fgmail-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskynewz%2Fgmail-cleaner/lists"}