- rescue NonexistentAccountError => e
- report(plugin, "Account not found: #{e.to_s}")
- rescue StandardError => e
- report(plugin, "There was an error removing the account: #{e.to_s}")
- Kernel.exit(ExitCodes::DATABASE_ERROR)
- end
- else
- begin
- domain_description = plugin.describe_domain(target)
- plugin.delete_domain(target)
- report(plugin, "Removed domain: #{target} (#{domain_description})")