added the --purge-only option