Delete all the likes


(Arpit Jalan) #1

Want to delete all the existing :heart: on your instance? Here is how you can do it.

Access your site

First connect to your Droplet via SSH, and enter the Docker container for your Discourse instances:

cd /var/discourse
./launcher enter app

:warning: WARNING

We strongly recommend you take a full backup before proceeding.

Delete all the likes

rake posts:delete_all_likes

The above command will delete all the likes on your instance.


(Daniela) #2

After deleting all the likes, will the user trust levels be reset too (regulars come back to members after the period of grace)?


(Mittineague) #3

This seems like a last-resort nuclear Like reset that I’d hesitate to do. In addition to Likes being integral with Trust Level as Trash posted, they are also used to add value weight to posts and topics.

Is there a particular use case where Deleting all Likes would be a good thing to do?

Any time this should not be done no matter how bad a Likes situation has become?