@zuplo/delete-github-environments

v1.0.3
Bulk delete github environments

Bulk Delete Github Environments

This is a script that makes it easy to delete all environments in a Github repository.

Usage

  1. Clone this repository:
git clone https://github.com/zuplo/zuplo
  1. Install the dependencies:
npm install
  1. 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.

  1. Run the script:
npm start

You should see output like this:

Deleting environment: my-env...
Deleted environment: my-env2...
npm i @zuplo/delete-github-environments

Metadata

Downloads