Improved purge command.