Search code examples
firebasegoogle-cloud-functionsfirebase-hosting

Undeploy functions in firebase hosting


I have deployed one function as part of Firebase deploy command and I could see the same in Firebase/Google Cloud console.Is there any way to remove the same functions, as directly removing the functions folder and deploying it again is not actually removing the already deployed functions.

Also I tried disabling the hosting as well, but that also didn't help. Could someone please let us know if there is any command to un-deploy the already deployed functions?


Solution

  • Using firebase itself, the only way I am aware of is to deploy an empty/do-nothing function, which will overwrite your existing function(s).

    You could also do this from the Google cloud functions console. Visit https://console.cloud.google.com/functions/list?project=my-project, find the function you want to delete, click on the three vertical dots at the right, and choose "Delete".

    enter image description here