question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List and delete deployments

See original GitHub issue

I’ve just noticed by Firebase hosting usage is now almost 1 GB. Quite a lot given the fact our website is only 20 MB.

nowaker@nwkr-desktop ~/projekty/virtkick/website (git)-[master] % du -hs build 
20M     build

It seems all previous deployments are kept by Firebase and they’re visible at https://console.firebase.google.com/project/PROJECTNAME/hosting/main.

Deleting 90 deployments one by one manually is out of question. There’s a big need to have a way to list deployments via CLI and delete them.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:119
  • Comments:64 (19 by maintainers)

github_iconTop GitHub Comments

763reactions
mbleighcommented, Jul 10, 2017

We’re aware of the issue here and are considering the best way to tackle it. In general we don’t want you to feel worried about having a growing history of versions. Curious for anyone who comes across this (vote with emoji on this comment): which would you like best?

  • 🎉 The ability to list and possibly batch delete old versions
  • 👍 Old versions are only kept for a certain amount of time unless “pinned” in some way
  • ❤️ Only a certain number of old versions are kept unless “pinned” in some way
37reactions
mbleighcommented, Aug 25, 2018

Oh look, someone seems to have dropped a gist that might be relevant to this thread…

Ducks Out

P.S. We’re still working on a better, automated solution but in the meantime this is a much better band-aid. 😼

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deleting deployments - Google Cloud
In the list of deployments, select the check boxes for the deployments that you want to delete. On the top of the page,...
Read more >
Kubectl Delete Deployment: Deleting Kubernetes Deployment
Learn how to delete Kubernetes deployment using kubectl delete deployment command and by deleting its configuration YAML file.
Read more >
Delete Helm Deployment & Namespace {How-To} - phoenixNAP
Learn how to delete a Helm deployment and remove a Kubernetes cluster namespace in this step-by-step tutorial.
Read more >
kubectl Cheat Sheet | Kubernetes
kubectl Cheat Sheet. This page contains a list of commonly used kubectl commands and flags. Kubectl autocomplete. BASH.
Read more >
Delete a deployment configuration with CodeDeploy
To use the AWS CLI to delete a deployment configuration, call the delete-deployment-config command, specifying the deployment configuration name. To view a list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found