{"id":21882130,"url":"https://github.com/shgtkshruch/delete-github-packages-with-graphql-api","last_synced_at":"2025-03-22T01:14:37.500Z","repository":{"id":73276144,"uuid":"228419315","full_name":"shgtkshruch/delete-github-packages-with-graphql-api","owner":"shgtkshruch","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-17T00:58:23.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T19:13:31.788Z","etag":null,"topics":["github-packages","graphql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shgtkshruch.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-12-16T15:39:23.000Z","updated_at":"2019-12-27T01:05:15.000Z","dependencies_parsed_at":"2023-04-06T23:53:47.626Z","dependency_job_id":null,"html_url":"https://github.com/shgtkshruch/delete-github-packages-with-graphql-api","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/shgtkshruch%2Fdelete-github-packages-with-graphql-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgtkshruch%2Fdelete-github-packages-with-graphql-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgtkshruch%2Fdelete-github-packages-with-graphql-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgtkshruch%2Fdelete-github-packages-with-graphql-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shgtkshruch","download_url":"https://codeload.github.com/shgtkshruch/delete-github-packages-with-graphql-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890097,"owners_count":20527035,"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":["github-packages","graphql"],"created_at":"2024-11-28T09:27:00.387Z","updated_at":"2025-03-22T01:14:37.476Z","avatar_url":"https://github.com/shgtkshruch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Delete GitHub Packages through [GitHub GraphQL API v4](https://developer.github.com/v4/).\n\n## Install\n \n```sh\ngit clone git@github.com:shgtkshruch/delete-github-packages-with-graphql-api.git\ncd delete-github-packages-with-graphql-api\nnpm i\n```\n\n## Set up\n\n1. Get [GiHub personal access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).\n\nAdd scopes below.\n- `repo`\n- `read:packages`\n- `delete:packages`\n\n2. Set environment variables.\n```sh\n# bash\nexport GITHUB_API_TOKEN=\"xxx\"\n\n# fish\nset -x GITHUB_API_TOKEN xxx\n```\n\n## Command\n\n```sh\n# Get package version ID\nnode get.js [owner] [repository name]\n\n# Delete specific version package\nnode delete.js [package version ID]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgtkshruch%2Fdelete-github-packages-with-graphql-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshgtkshruch%2Fdelete-github-packages-with-graphql-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgtkshruch%2Fdelete-github-packages-with-graphql-api/lists"}