src/helpers/MSFS/ConfigFiles/parseCFGFile.js
/**
 * Remove airplane object from the CFG file by FLTSIM number
 *
 * @export
 * @argument {Number} planeNumber Plane number for in the aircraft.cfg
 * @example removeAirplane(63)
 */
Remove airplane object from the CFG file by FLTSIM number
@export
@argument {Number} planeNumber Plane number for in the aircraft.cfg
@example removeAirplane(63)
Remove airplane object from the CFG file by FLTSIM number @export @argument { Number } planeNumber Plane number for in the aircraft . cfg @example removeAirplane ( 63 )
function removeAirplane(planeNumber) {
  let airplaneCFG = parseCFGFile();
  delete airplaneCFG.FLTSIM[planeNumber];
  fs.writeFileSync(CFGpath, ini.stringify(airplaneCFG));
  return;
}
function removeAirplane ( planeNumber ) { let airplaneCFG = parseCFGFile ( ) ; delete airplaneCFG . FLTSIM [ planeNumber ] ; fs . writeFileSync ( CFGpath , ini . stringify ( airplaneCFG ) ) ; return ; }
Remove airplane object from the CFG file by FLTSIM number
 @export
 @argument {Number} planeNumber Plane number for in the aircraft.cfg
 @example removeAirplane(63)
Remove airplane object from the CFG file by FLTSIM number @export @argument { Number } planeNumber Plane number for in the aircraft . cfg @example removeAirplane ( 63 )