Undeploy functions in firebase hosting

I deployed one function as part of the Firebase deployment team, and I could see it in the Firebase / Google Cloud console. Is there a way to remove the same functions as directly deleting a folder with functions and deploying it? In fact, deleting already deployed functions.

I also tried to disable hosting, but that also did not help. Can someone please tell us if there is any command to deploy the functions already deployed?

+5
source share
3 answers

Using firebase itself, the only way I know is to deploy an empty function / do nothing that will overwrite your existing functions.

You can 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 remove, click on the three vertical dots on the right and select "Delete".

enter image description here

+6
source

You can simply change the function to an empty block and run the deploy command:

exports.myFunc = {}

This will remove the function:

$ firebase deploy
i  deploying functions
i  functions: ensuring necessary APIs are enabled...functions: all necessary APIs are enabled
i  functions: preparing functions directory for uploading...
i  functions: deleting function myFunc...functions[myFunc]: Successful delete operation. 
+1
source

, - , ?

, firebase functions: delete myFunc, myFunc.

:

https://firebase.google.com/docs/functions/manage-functions#delete_functions

In the Firebase console, the function page on the right has an icon that you can click to see the menu for deleting items.

0
source

Source: https://habr.com/ru/post/1678252/


All Articles