Completely Delete and Make Private Sites Published on Firebase Hosting

Tadashi Shigeoka ·  Tue, June 21, 2022

I’ll introduce how to completely delete and make private sites published on Firebase Hosting.

Firebase | ファイヤーベース

Background: Want to Make Firebase Hosting Sites Inaccessible

  • Want to delete the site since I no longer use Firebase Hosting
  • Want to keep Google Analytics etc.
  • Want to keep the Firebase Project itself

With these prerequisites, I’ll introduce how to completely delete only the site.

Stop Site with firebase hosting:disable

firebase hosting:disable
アクティブな Firebase プロジェクトの Firebase Hosting トラフィックの処理を停止します。

このコマンドを実行した後、プロジェクトの Hosting URL に「サイトが見つかりません」というメッセージが表示されます。

Quote from: ホスティング コマンド | Firebase CLI リファレンス | Firebase Documentation

How to Verify Firebase Hosting Site Is Private

Since browser cache might still allow access, let’s verify with the following steps:

  1. Open browser in incognito/private mode
  2. Access the target Firebase Hosting site
  3. Confirm that "Site Not Found" is displayed

Above, I completely deleted and made private the site published on Firebase Hosting.

That’s all from the Gemba.