replacing del with rimraf.