Add validateOptions in purge cmd. Improve messages in purge cmd. Remove unnecessary imports.
Merge pull request #4233 from AndresTanasijczuk/purgecmd

Add validateOptions in purge cmd. Improve messages in purge cmd.