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.
source
share