This guide explains how to remove all existing likes on your Discourse instance. Itβs intended for users with console access.
Required user level: System Administrator
Console Access Required
Want to delete all the existing likes 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
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.
Last edited by @SaraDev 2024-11-07T21:10:20Z
Check document
Perform check on document: