My question consists two parts
- What if I turn off Firebase billing and switch to spark plan will all cloud functions will be deleted?
- Can I turn off billing using cloud functions and puppeteer to prevent myself from attack?
My question consists two parts
According to the documentation, your data is not getting deleted but your project loses access to paid features.
There is an example of how to stop billing using Cloud Functions described in the automated cost control responses guide.