本文へスキップ
ブログ

Firebase "Site ID is unavailable": deleted IDs stay reserved

Firebase Hosting says "Site ID is unavailable" or "is reserved by another project" after a delete. Why Firebase won't give the ID back, and what to do.

The Liite team7分で読めます

Short answer

Firebase documents that deleting a Hosting site is permanent and that its site ID "cannot be reactivated by you or anyone else". You can't get the old ID back, so create the site under a new ID and put a domain you own in front of it.

You deleted a Firebase Hosting site, then tried to create a new one with the same name. Firebase refuses. The console says:

Site ID is unavailable

and the command line says:

Invalid name: … is reserved by another project

The wording can differ a little between the console and CLI versions.

Why Firebase won't let you reuse the ID

A site ID builds the default addresses SITE_ID.web.app and SITE_ID.firebaseapp.com. The ID must be globally unique within Firebase, so the name you want can be taken by a stranger's project.

The less obvious cause is your own deleted site. Firebase's documentation calls deleting a site a permanent action. It keeps no record of deployed files or deployment history, and the site ID cannot be reactivated by you or anyone else. That is the behavior you are hitting. It is not a bug and not a temporary lock.

Firebase's docs don't say why the ID stays blocked. The usual guess is that a released ID would let a stranger inherit traffic, bookmarks and links that still point at the old address. That reasoning is an inference, not something Firebase states. People on a community forum also report the block is permanent and not a cooling-off period, and the official page matches that.

The "reserved by another project" wording can mislead you. It doesn't prove someone else owns the name. Your own deleted site can be the one holding it, and from the error alone you can't tell which case you have.

SituationWhat you seeFix
You deleted this site earlier"Site ID is unavailable"Pick a new ID
Someone else's live site uses itSame errorPick a new ID
ID is longer than 30 characters or has . or _Invalid name errorShorten it, use letters, numbers and hyphens
You want the old URL for visitorsOld .web.app address is deadAdd a custom domain to the new site

Step-by-step fixes

Fix 1: Create the site under a new ID

  1. Choose a new ID. Add a word, a year or a project name, such as myshop-2026 instead of myshop.
  2. Check the requirements. The ID must be a valid hostname label (no . or _), 30 characters or fewer, and globally unique. Lowercase letters, numbers and hyphens are safe.
  3. Create the site. You can use the Hosting page in the Firebase console, the CLI command firebase hosting:sites:create SITE_ID, or the Hosting REST API.
  4. If the name is taken again, try another variant. Each failed attempt only tells you that ID is unavailable.

The default site is different

You can't delete the default site, which has the same ID as your Firebase project ID. The reuse problem applies to extra sites you created and deleted.

Fix 2: Point your config at the new site

Firebase recommends deploy targets over hard-coded site IDs. Its docs call deploy targets the recommended way to configure deploys for multiple Hosting sites. If firebase.json or your CLI commands reference the old SITE_ID directly, edit them to use deploy targets.

  1. Open firebase.json and find the hosting entry.
  2. Replace any old site value with the new ID, or switch to a target name.
  3. The target maps a name you choose to the SITE_ID as listed in your Firebase project. Map your target to the new site.
  4. Run your deploy again.

Fix 3: Put your own domain in front of the site

If people knew the old .web.app address, the lasting fix is a domain you own. Firebase lets you add custom domains to a site so the same content serves at several URLs.

  1. Open the new site in the Hosting section of the Firebase console.
  2. Look for the option to add a custom domain.
  3. Add the DNS records Firebase shows you at your registrar or DNS provider.
  4. Wait for Firebase to confirm the domain, then test it in a private window.

From then on visitors see your domain. If you ever move or recreate the site, you change DNS and the public address stays the same.

Fix 4: Update every place that used the old address

Nothing forwards from a dead .web.app address. Update these:

  • social profiles and link-in-bio pages
  • README files and documentation
  • email signatures
  • OAuth and auth redirect or authorized-domain settings
  • QR codes and printed material

Authorized domains

If your app uses Firebase sign-in, the old domain may still be in your allowed list and the new one missing. Sign-in can fail on the new address until you add it.

What won't help

  • Deleting and re-creating again. The ID stays blocked however often you try.
  • Waiting. Firebase documents no release period.
  • Looking for a restore or release button. Firebase says the ID can't be reactivated by you or anyone else, so don't expect a self-serve option.
  • Creating the site in a different project. Site IDs are checked across all of Firebase, so another project doesn't help.

Checklist before you try again

  • The new ID is 30 characters or fewer.
  • It uses only lowercase letters, numbers and hyphens.
  • It differs from every site ID you ever deleted.
  • firebase.json points at the new ID or a deploy target.
  • Your custom domain's DNS records are in place.
  • Auth redirects and old links are updated.

If nothing works

If a fresh, clearly unique ID is also refused, the cause may be something else: a typo, a length problem, or a CLI logged into the wrong project. Run firebase projects:list and firebase use to confirm the project. If it still fails, contact Firebase Support through the Firebase console's help menu. Include the exact error text, the command you ran, the project ID and when you deleted the old site.

Subject: Hosting site ID "<site-id>" unavailable after deleting the site

Hi Firebase Support,

I deleted a Hosting site with ID "<site-id>" in project "<project-id>" on <date>.
Creating a site with that ID now fails with:
"Site ID is unavailable" / "Invalid name: <site-id> is reserved by another project".

I understand deleted site IDs cannot be reactivated. Can you confirm that
this ID is the one blocked, and that no exception is possible? I have tried
a new ID "<new-id>" with the same result / I will use a new ID.

CLI version: <output of firebase --version>
Command run: firebase hosting:sites:create <site-id>

Thanks,
<name>

Common questions

Can Firebase Support give me the ID back?

The documentation says nobody can reactivate it, so expect no. Support isn't mentioned as an exception, and I found no published process for one. If a specific name matters to your business, asking costs nothing.

Does this affect my project ID too?

The documentation says the default site shares its ID with the project ID, and you can't delete that default site. The reuse rule here is about secondary Hosting sites. For project IDs, check Firebase's project deletion docs.

Is the old site's content recoverable?

No. Firebase keeps no record of deployed files or deployment history for a deleted site. If you still have the source or build folder, deploy it to the new site. Keep your own copy outside the console.

How do I avoid this next time?

Treat deletion as final for the ID. To clear old content, deploy a placeholder to the same site instead of deleting it. For anything people bookmark, use a custom domain so the Firebase ID never becomes the public address.