function deleteRoom (roomDir) {
  // if another user is reading/writing to the file, then is should give an EBUSY error which is ok,
  // because whoever uses the dir last will eventually remove it

  rmdir(roomDir, { recursive: true }, err => {
    if (err) {
      console.error(err)
    } else {
      console.log(`removed ${roomDir}`)
    }
  })
}
/**
 * removes the directory associated with the given room ID
 * @param {string} roomId
 */
removes the directory associated with the given room ID
@param {string} roomId
removes the directory associated with the given room ID @param { string } roomId
function deleteRoom (roomDir) {
  rmdir(roomDir, { recursive: true }, err => {
    if (err) {
      console.error(err)
    } else {
      console.log(`removed ${roomDir}`)
    }
  })
}
function deleteRoom ( roomDir ) { rmdir ( roomDir , { recursive : true } , err => { if ( err ) { console . error ( err ) } else { console . log ( ` ${ roomDir } ` ) } } ) }
removes the directory associated with the given room ID
 @param {string} roomId
removes the directory associated with the given room ID @param { string } roomId
// if another user is reading/writing to the file, then is should give an EBUSY error which is ok, // because whoever uses the dir last will eventually remove it