Remove specific user from Firebase
<p>I try to make a online database (Firebase), for test and learn.
I successfully added members in database, but i don't know where is the problem with my code from remove.</p>

<p>Here is my code:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;


  &lt;/head&gt;
    &lt;body&gt;
      &lt;button onclick="saveData()"&gt;Save Data&lt;/button&gt;
      &lt;button onclick="printData()"&gt;Print Data&lt;/button&gt;
      &lt;button onclick="printData2()"&gt;Print Data2&lt;/button&gt;
      &lt;button onclick="remove()"&gt;Remove&lt;/button&gt;
      &lt;script src="https://cdn.firebase.com/js/client/2.4.2/firebase.js"&gt;&lt;/script&gt;
      &lt;script&gt;
        var ref = new Firebase("https://projecttest-9aee9.firebaseio.com/web/saving-data/fireblog");
        var usersRef = ref.child("users");
        function saveData(){
        usersRef.set({
          alanisawesome: {
            date_of_birth: "June 23, 1912",
            full_name: "Alan Turing"
          },
          gracehop: {
            date_of_birth: "December 9, 1906",
            full_name: "Grace Hopper"
          }
        });
      }

      function printData(){

        usersRef.on("value", function(snapshot) {
        console.log(snapshot.val());
      }, function (errorObject) {
        console.log("The read failed: " + errorObject.code);
      });
      }
       function printData2(){

        ref.child("users/gracehop/date_of_birth").on("value", function(snapshot) {
        console.log(snapshot.val());//"December 9, 1906"
      }, function (errorObject) {
        console.log("The read failed: " + errorObject.code);
      });
      }
      var ref = new Firebase("https://projecttest-9aee9.firebaseio.com/web/saving-data/fireblog/users");
      var usersRef= ref.child("users");
      function remove(){
          usersRef.remove({

          .then(function() {
             console.log("Remove succeeded.")
                            })
          .catch(function(error) {
             console.log("Remove failed: " + error.message)
                                 })
        });
        }
      &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I'm novice and i need your help!</p>

<p>Thank you for interest!</p>