How do you remove html files from Firebase Hosting?

巧了我就是萌 提交于 2019-12-01 06:30:44

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

Remove a file

To remove a single file, delete it locally and re-deploy.

$ rm public/foo.html
$ firebase deploy

Disable hosting

If you want to remove an entire site on Firebase hosting, you can disable hosting entirely.

$ 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.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!