Delete App Hosting

1,107 views
Skip to first unread message

Eric Roupe

unread,
Jul 13, 2024, 9:13:53 PM7/13/24
to Firebase Google Group
Is there a way to delete app hosting?  I was testing a Next JS project that was inside a Turborepo (monorepo) setup.  I was never able to get it to working and I have 2 different backends that fail every time I make a change to my repo.

A feature that is missing with App Hosting is to delete, I don't see it anywhere.

Thanks,

Joe Spiro

unread,
Jul 22, 2024, 10:57:17 AM7/22/24
to Firebase Google Group
The supported process to do this involves using the Firebase CLI’s App Hosting commands to list and delete the relevant backends and then go to the Google Cloud Console for Artifact Registry and delete the correct sub-folder for your backend in "firebaseapphosting-images".

Optionally,  IF AND ONLY IF the following aren't being used by other backends or systems, also delete anything  in Secrets manager with "apphosting" in the name + any secrets you aren't using anymore and delete the connections with "app hosting" in the name in Developer Connect.

Please take a look at the above links and ask any questions you may have.

Eric

unread,
Aug 26, 2024, 11:27:49 AM8/26/24
to Firebase Google Group
Thanks Joe!

Just a note on my experience doing this today if it helps anyone reading or anyone on this Google team:

I deleted the relevant backends using the CLI which seemed to delete them, but returned an error `Error: Failed to delete backend:`

I looked in the Artifact Registry for any sub-folders in the  "firebaseapphosting-images" folder, but didn't see any sub-folders.

I no longer see the apps in the UI on Firebase and also no longer seeing the build for related App Hosting apps in GitHub.

This delete function feels like it should be in the Firebase UI, for Next.js developers used to using Vercel for deployment, having it in a UI would be most natural for these devs.  Just an opinion 

Great work on adding Next.js deployments on Firebase!  :)



Joe Spiro

unread,
Aug 27, 2024, 2:49:58 PM8/27/24
to Firebase Google Group
Hello Eric,

Really appreciate the feedback; I'd be curious to hear more about the error you ran into and the friction around the process generally. Please file a bug and if I have access to it I will try to get this floated to the right people.

As for adding the delete function to the Firebase console UI, please create a feature request and link it in a post to User Voice. From there, myself and other Firebase users can vote it up and shine some light on it.

Regards,
Joe

Reply all
Reply to author
Forward
0 new messages