How do I remove a hosted site from firebase

FirebaseFirebase Hosting

Firebase 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.

  1. Run firebase hosting:disable through the firebase-tools CLI first.
  2. Go to Firebase Console and select Hosting from the menu of the left.
  3. You will see the deployed project with a list of your historical actions like Deployed, disabled, etc.
  4. 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:

  1. Go to the Firebase Hosting console for your project, you will see your domain.
  2. Hover over your domain. There's an overflow menu ( three vertical dots) on the right.
  3. 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.

enter image description here

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.


Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondpixView Question on Stackoverflow
Solution 1 - FirebaseEric TanView Answer on Stackoverflow
Solution 2 - FirebaseRISHU GUPTAView Answer on Stackoverflow
Solution 3 - FirebaseFrank van PuffelenView Answer on Stackoverflow
Solution 4 - FirebaseStephenView Answer on Stackoverflow
Solution 5 - FirebaseFlukedev8View Answer on Stackoverflow
Solution 6 - Firebasericse_ronalView Answer on Stackoverflow
Solution 7 - FirebaseAtakan E.View Answer on Stackoverflow
Solution 8 - FirebaseAshiq MuhammedView Answer on Stackoverflow
Solution 9 - FirebaseJeevan ChathurangaView Answer on Stackoverflow