How do I remove a hosted site from firebase
FirebaseFirebase HostingFirebase Problem Overview
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
Firebase Solutions
Solution 1 - Firebase
It can be deleted.
- Run
firebase hosting:disable
through thefirebase-tools
CLI first. - Go to Firebase Console and select
Hosting
from 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.
Solution 2 - Firebase
If you have multiple site hosted in same project, then use -s flag to specify the site you want to disable.
firebase hosting:disable -s yoursitename
Solution 3 - Firebase
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
Solution 4 - Firebase
You don't need to upload empty directory.
Just open your project's root directory and enter the following command
$ firebase hosting:disable
? Are you sure you want to disable Firebase Hosting for the site xyz
This will immediately make your site inaccessible! Yes
✔ Hosting has been disabled for xyz. Deploy a new version
to re-enable.
This will instantly disable running website also adds a Disabled status in release history. Tested on firebase CLI version 9.20.0
Solution 5 - Firebase
[Update]
For multiple site hosted !! use command
firebase hosting:disable --project yoursitename
for me it work!! Can your try?
Solution 6 - Firebase
You can use the following command:
firebase hosting:disable -s <firebase_project_name>
replace <firebase_project_name>
with the name of your firebase project. This allows you to unsubscribe from the current project and place it in disable mode and you cannot receive traffic from the published web page. When you want to re-enable it, you can do it from the visual platform. I leave an image attached so that you can be guided.
Solution 7 - Firebase
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 deploy
which will have a console url that looks like this: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.
Solution 8 - Firebase
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 :)
Solution 9 - Firebase
1.Sign in to Firebase, then open your project.
2.Click the Settings icon near project Overview button, then select Project settings.
3.In the Your apps card, select the app that you want to delete.
4.Find the Delete Project button from bottom of the page , click Delete Project.
5.Check the points , then click Remove app permanently.