Added purge option to index console command.

This makes develop and deploy a bit easier.