core
core copied to clipboard
Ability to Delete deployment
It would be great to have an option to delete a deployment directly from NuxtHub Admin, rather than having to navigate to Cloudflare and manually delete it there. If this option/button already exists, I might have missed it—please let me know!
What is your use case of deleting a deployment?
I've felt the deployments view can get a bit messy when there are too many deployments and hard to find the right one for a specific branch/preview. So I just thought cleaning it up a bit by remove some. But actually a better solution might be to add filters! Allowing users to narrow down deployments by branch, status, or date range.
@atinux What do you think?
I like this idea, as we are reworking the platform for the workers, we will keep this idea as well, cc @RihanArfan
Sorry know this is a bit old, but just coming to add my use case / requirement for this.
I'm just new and playing with NuxtHub. I accidentally ran npx nuxthub deploy from a wip state in my local repo, and it created a preview env that I didn't want. It showed in NuxtHub so I assumed I could delete it, but I couldn't find anywhere to do this. So I deleted it from Cloudflare. And now I've still got an entry in NuxtHub that links to a 404 environment in Cloudflare, and if I (as a test) run deploy again I get an error that 'This Worker does not exist on this account.'... so it's just in kind of 'stuck there' and in a broken state right now.
Separate to this, if I was using this for production work, my team would may want to do deploys of various feature/test environments that have a short lifespan then go away. It seems like a basic concept that if you can create multiple environments, you may also want to delete them at some point.
@oldskool73 Thanks for sharing your use case, and please drop us an email at [email protected]/drop a DM on Discord with your project key and we can sort out the limbo state of your preview environment. :)
Currently as the preview environment is a "fallback" if no other environment is matched, we don't allow deleting it. However if your team will be experimenting a lot, additional custom environments can be deleted from NuxtHub Admin once you're finished with them. https://hub.nuxt.com/changelog/environments#custom-environments