Want to replace a string in all the posts? Let’s 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
We strongly recommend you take a full backup before proceeding, and make sure your string replacement is specific enough to affect only the places you want it to. If this string replacement goes wrong, every post on your site will look broken!
Remap all posts containing a specific string
Run this command:
find with the string you want to match and
replace with the string you want to replace with.
The above command will replace all occurrences of
Remove/Delete all occurrences of a word/string
The above command will remove all occurrences of