How to remove html files from Firebase Hosting?

Example:

I have three html files in firebase hosting:

  • index.html
  • test1.html
  • test2.html

Question:

How to remove html test1.html files? I was confused to remove this, do I need to install the json file firebase.json or are there other ways? Thank you for your help.

+4
source share
1 answer

Depending on how much you want to remove, you have several options:

Delete a file

To delete a single file, delete it locally and redeploy it.

$ rm public/foo.html
$ firebase deploy

Disable hosting

If you want to delete the entire site on the Firebase host, you can completely disable hosting .

$ firebase hosting:disable
? Are you sure you want to disable Firebase Hosting?
  This will immediately make your site inaccessible! Yes
✔  Hosting has been disabled for example-firebase. Deploy a new version to re-enable.
+4
source

Source: https://habr.com/ru/post/1652821/


All Articles