@zuplo/delete-github-environments
v1.0.3
Published
Bulk delete github environments
Keywords
Readme
Bulk Delete Github Environments
This is a script that makes it easy to delete all environments in a Github repository.
Usage
- Clone this repository:
git clone https://github.com/zuplo/zuplo- Install the dependencies:
npm install- Set Environment Variables
Copy the .env.example file in this directory to .env and fill in the required variables.
You will need to create a Github Personal Access Token with the repo scope and set it as the GITHUB_TOKEN value. As of writing you cannot use Github fine-grained tokens.
- Run the script:
npm startYou should see output like this:
Deleting environment: my-env...
Deleted environment: my-env2...