'How to force terminating a cloud function?

I unfortunately ran to an infinite loop of cloud function ,It's being executing since yesterday without stopping ,please don't tell me how to avoid this problem because I'm fully aware of this but I ran to this issue by mistake ,I just want to know why firebase team did not yet develop a way allowing developers to force terminating such functions.



Solution 1:[1]

You can stop a function from executing by undeploying it. Comment it out of your index.js and run firebase deploy again.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Doug Stevenson