How to delete node from Firebase via REST API?
<p>My Firebase DB structure as follows.</p>

<p><a href="https://i.stack.imgur.com/L1YgB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L1YgB.png" alt="enter image description here"></a></p>

<p>I want to delete particular type via Firebase Rest API. I can delete a type2 using its name as follows. </p>

<pre><code>curl -X DELETE \
  'https://myfirebase.firebaseio.com/ds_api/types/type2.json'
</code></pre>

<p>But I want to delete type2 by using its id <code>id =2</code>. How can do this?</p>