KiwiRail group chief executive Greg Miller has resigned effective immediately due to the “recent and sustained allegations in the media” which he denies, the company says.