Skip to content

Instantly share code, notes, and snippets.

View f1dz's full-sized avatar
☺️
Keep writing and learning

Khofidin f1dz

☺️
Keep writing and learning
View GitHub Profile
@f1dz
f1dz / README.md
Created September 14, 2018 01:35 — forked from mbleigh/README.md
Automate the deletion of old Firebase Hosting versions.

Firebase Hosting Version Cleanup

This is a simple utility script for cleaning up Firebase Hosting versions, leaving a specified number of versions remaining. This is primarily done to conserve storage usage, but may have other uses.

USE AT YOUR OWN RISK. NO WARRANTY IS PROVIDED. THIS SCRIPT DOES DELETE STUFF PERMANENTLY

Usage

node cleanupVersions.js [commit]