[Solved] Cloud variables - how do I delete something?

I’ve mostly gotten cloud variables figured out, but I’m stumped on this bit.

My data structure is something like
/groceries/items/bananas/quantity:1
/groceries/items/apples/quantity:2
… (etc for more fruits)

If I want to delete the apples branch, how do I do that? I’ve accidentally discovered that if I set /groceries/items to a value, that I’ll blow away all the child nodes (oops), but that’s not quite what I need here.

Hmm… The answer might be in here. Trying it out: How to Update and Delete Data from Firebase // Thunkable X - YouTube

UPDATE: yep. Set cloud variable /groceries/items/apples to NULL works!

4 Likes

Thanks for sharing the solution!

2 Likes