purge-gcloud-app
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Helper to delete old versions of an App Engine project. Install via purge-gcloud-app.

This just farms out to gcloud and will use whatever credentials are available in your environment. Even though this task is fundamentally async, we block in Node until complete.

Usage

import purgeGcloudApp from 'purge-gcloud-app';

const deletedVersionCount = purgeGcloudApp({
  project: 'project-id', // required

  // All other parameters are optional, here are their defaults:
  service: 'default',
  keepMinimum: 20,            // keep the most recent <X> versions
  keepDailyAmountDefault: 7,  // keep one version for each of the past <X> days
  log: (s) => console.info(s),
});

There's also a binary purge-gcloud-app which just takes a single argument the project ID, and otherwise uses all defaults.

Readme

Keywords

none

Package Sidebar

Install

npm i purge-gcloud-app

Weekly Downloads

0

Version

0.1.1

License

Apache-2.0

Unpacked Size

18.9 kB

Total Files

7

Last publish

Collaborators

  • samthor