Delete all the likes

:bookmark: This guide explains how to remove all existing likes on your Discourse instance. It’s intended for users with console access.

:person_raising_hand: Required user level: System Administrator

:warning: 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: 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 documentPerform check on document:
11 Likes