iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔥
How to Delete a Firebase Hosting Site
Have you ever wanted to delete a Firebase Hosting site? I have.
You cannot delete Hosting from the web console, so you must execute a command.
firebase hosting:disable
Stops serving Firebase Hosting traffic for your active Firebase project.
After you run this command, your project's Hosting URL will display a "Site Not Found" message.
Firebase CLI reference | Firebase Documentation
When executed, you can disable the hosted site like this:
user@MacBook your-project % firebase hosting:disable
✔ Are you sure you want to disable Firebase Hosting for the site your-project
This will immediately make your site inaccessible! Yes
✔ Hosting has been disabled for your-project. Deploy a new version to re-enable.
This is useful when you want to delete just the Hosting site without deleting the Firebase project itself.
I have summarized the knowledge I gained from developing at home every day for two and a half years! Please check it out if you'd like.
Discussion