I have a hosted site on firebase which I am not using anymore. I still want to keep the project but want to remove the hosted site. Is there any way to do this or do I just need to upload an empty directory. Doesn't seem to be an option in the UI
It can be deleted.
- Run
firebase hosting:disablethrough thefirebase-toolsCLI first. - Go to Firebase Console and select
Hostingfrom the menu of the left. - You will see the deployed project with a list of your historical actions like
Deployed,disabled, etc. - Only after you have disabled the site, the "three vertical dots" menu will be available for you to choose the action to delete the deployment.
It's a bit hidden, but here are the steps:
- Go to the Firebase Hosting console for your project, you will see your domain.
- Hover over your domain. There's an overflow menu (⋮ three vertical dots)on the right.
- From the overflow menu select Delete Domain
I spent too much time on this and hopefully this can be helpful. I did deploy my stuff using firebase deploy however I was not able to see in on the firebase console. When I tried firebase hosting:disable I got this Error: HTTP Error: 400, Invalid project ID specified.
The steps below helped me delete my project.
To find the project, you have to get the output of
firebase deploywhich will have a console url that looks like this:Project Console: https://console.firebase.google.com/project/<your-project-id>/overview.Follow this link and go to project settings. You should be able to
delete your project in there.
As of now there is no proper way to bulk delete all the previous deployments in a project.
However the best thing you can do is to empty the firebase hosting folder and then deploy it using firebase deploy
This option has been given as a feature request to firebase. Lets hope its get implemented soon :)
来源:https://stackoverflow.com/questions/42591099/how-do-i-remove-a-hosted-site-from-firebase