lib/storeRedis.js
function( roomID, key ) {

		var oldVal;

		if( roomData[ roomID ] === undefined ) {

			return promise.reject( 'There is no room by that id' );
		} else {

			oldVal = roomData[ roomID ][ key ];

			delete roomData[ roomID ][ key ];

			return promise.resolve( oldVal );
		}
	}
function( roomID, key ) {

		var oldVal;

		if( roomData[ roomID ] === undefined ) {

			return promise.reject( 'There is no room by that id' );
		} else {

			oldVal = roomData[ roomID ][ key ];

			delete roomData[ roomID ][ key ];

			return promise.resolve( oldVal );
		}
	}
function ( roomID , key ) { var oldVal ; if ( roomData [ roomID ] === undefined ) { return promise . reject ( 'There is no room by that id' ) ; } else { oldVal = roomData [ roomID ] [ key ] ; delete roomData [ roomID ] [ key ] ; return promise . resolve ( oldVal ) ; } }
delete a variable from the rooms data object

@param {String} roomID id for the room
@param {String} key variable name/key that you want to delete
@return {Promise} once this promise succeeds it will return the value that was stored before delete
delete a variable from the rooms data object