|
⇐ Deleting the DB |
⇑ Deleting user #2 |
<script> // // Function to get form values // function getInputVal( input ) { return document.getElementById( input ).value; } // // Delete a user (delete is a reserved word). // function deleteUser( ) { var ID = getInputVal( 'ID' ); var userRef = firebase.database( ).ref( 'users/' + ID ); userRef.remove( ); var out = "User # " + ID + " deleted"; document.getElementById( 'result' ).innerHTML = out; return( false ); } // // Delete the database users (delete is a reserved word). // function deleteDB( ) { var userRef = firebase.database( ).ref( 'users/' ); userRef.remove( ); var out = "Database users deleted"; document.getElementById( 'result' ).innerHTML = out; return( false ); } </script> |
The sales manager was at death’s door (very near death) after his heart attack. |