Add validateOptions in purge cmd. Improve messages in purge cmd. Remove unnecessary imports.