DEV: remove unused method (rake task deleted in 6a274fd)

DEV: remove unused method (rake task deleted in 6a274fd)

diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake
index c338ecc..bc83af2 100644
--- a/lib/tasks/posts.rake
+++ b/lib/tasks/posts.rake
@@ -506,27 +506,6 @@ task 'posts:missing_uploads', [:single_site] => :environment do |_, args|
   end
 end
 
-def destroy_old_data_exports
-  topics = Topic.with_deleted.where(<<~SQL, 2.days.ago)
-    slug LIKE '%-export-complete' AND
-    archetype = 'private_message' AND
-    posts_count = 1 AND
-    created_at < ? AND
-    user_id = -1
-  SQL
-
-  puts "Found #{topics.count} old CSV data exports on #{RailsMultisite::ConnectionManagement.current_db}, destroying"
-  puts
-  topics.each do |t|
-    Topic.transaction do
-      t.posts.first.destroy!
-      t.destroy!
-      print "."
-    end
-  end
-  puts "done"
-end
-
 def recover_uploads_from_index(path)
   lookup = []

GitHub sha: 388433ec

2 Likes