title: Angular - How to delete data from Firebase DB
body: <p>I am trying to delete specific values from my firebase DB.
  I want to delete this entry from firebase:</p>
  
  <p><a href="https://i.stack.imgur.com/CAUHX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CAUHX.png" alt="enter image description here"></a></p>
  
  <p>What I tried so far is my button on how to trigger the delete button:</p>
  
  <pre><code> &lt;div class="single-bfunctions" 
   *ngFor='let bfunc of liste'&gt;
  &lt;b&gt; Name: &lt;/b&gt;{{bfunc.Name}} &lt;br&gt;
  &lt;b&gt; Beschreibung: &lt;/b&gt;  {{bfunc.Descr}}&lt;br&gt;
  &lt;b&gt; Key: &lt;/b&gt;   {{bfunc.$key}}
  &lt;button type="button"  ng-click="deleteSth(bfunc.name)"&gt;Delete Item &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>... and my delete-method:</p>
  
  <pre><code>deleteSth(name){
    firebase.database().ref('/BFunctions/').child(name).remove();
  } 
  </code></pre>
  
  <p>As I am also pretty new to Angular I don't really what the solution could be.
  I appreciate your answers!</p>