function deleteUserCredentials(req, res){
    var username = req.params.username;

    // Receive [] for success + failure..?

    var query = "DELETE FROM USERS WHERE \"username\" = ?";
    dashDB.query(query, [username], function(err, response){
        if(err) {
            logger.error("Couldn't delete user: " + username);
            logger.error(err.message);
            res.status(400).send("Couldn't delete user");
        } else{
            logger.info("User: " + username + " successfully deleted from database. Maybe.");
            res.status(200).send("User " + username + " was successfully deleted");
        }
    });


}
/**
 * Delete user credentials from SQL database
 * @param req {Object} The request from the client
 * @param req.params.username {String} Username of the client
 * @param res {Object} The response for the client
 */
Delete user credentials from SQL database
@param req {Object} The request from the client
@param req.params.username {String} Username of the client
@param res {Object} The response for the client
Delete user credentials from SQL database @param req { Object } The request from the client @param req . params . username { String } Username of the client @param res { Object } The response for the client
function deleteUserCredentials(req, res){
    var username = req.params.username;
    var query = "DELETE FROM USERS WHERE \"username\" = ?";
    dashDB.query(query, [username], function(err, response){
        if(err) {
            logger.error("Couldn't delete user: " + username);
            logger.error(err.message);
            res.status(400).send("Couldn't delete user");
        } else{
            logger.info("User: " + username + " successfully deleted from database. Maybe.");
            res.status(200).send("User " + username + " was successfully deleted");
        }
    });
}
function deleteUserCredentials ( req , res ) { var username = req . params . username ; var query = "DELETE FROM USERS WHERE \"username\" = ?" ; dashDB . query ( query , [ username ] , function ( err , response ) { if ( err ) { logger . error ( "Couldn't delete user: " + username ) ; logger . error ( err . message ) ; res . status ( 400 ) . send ( "Couldn't delete user" ) ; } else { logger . info ( "User: " + username + " successfully deleted from database. Maybe." ) ; res . status ( 200 ) . send ( "User " + username + " was successfully deleted" ) ; } } ) ; }
Delete user credentials from SQL database
 @param req {Object} The request from the client
 @param req.params.username {String} Username of the client
 @param res {Object} The response for the client
Delete user credentials from SQL database @param req { Object } The request from the client @param req . params . username { String } Username of the client @param res { Object } The response for the client
// Receive [] for success + failure..?