]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/rm_runner.rb
Move domain removal into the plugins.
[mailshears.git] / lib / rm / rm_runner.rb
index 0392d1192acbac86218c0813218e37b5b5c56929..114aabc355ad1c215f0b95e3cf1f20a2a626ea4d 100644 (file)
@@ -20,13 +20,6 @@ class RmRunner
         end
       else
         begin
-          # We must delete all accounts belonging to the domain first.
-          # This prevents us from leaving behind accounts. Not a
-          # problem with the mailstore, since we'll delete the domain
-          # directory anyway, but it is for the database plugins.
-          usernames = plugin.get_domain_usernames(target)
-          usernames.each { |u| run(plugin, u) }
-
           domain_description = plugin.describe_domain(target)
           plugin.delete_domain(target)
           report(plugin, "Removed domain: #{target} (#{domain_description})")