how to undeploy firebase hosting code example

Example 1: firebase only hosting command

firebase deploy --only hosting

Example 2: firebase hosting remove site

141

It can be deleted.

Run firebase hosting:disable through the firebase-tools CLI first.
Go to Firebase Console and select Hosting from the menu of the left.
You will see the deployed project with a list of your historical
actions like Deployed, disabled, etc.
Only after you have disabled the site, the "three vertical dots"
menu will be available for you to choose the action to delete the deployment.