Added purge option to index console command.