How to remove the parent with nested inside? Firebase Realtime Database + Javascript

I am trying to delete “temp”.

Imgur

What is the best, and cleanest way of going about this?

According to the firebase real-time database docs, the best way to do this is using “remove()” but I always get the error, “Property ‘remove’ does not exist on type ‘DataSnapshot’.”