In Discourse installations, server disk space fills up due to old images after a certain period of use. You can check if you have encountered such a situation and your current disk space usage;
df -h
If there is excessive usage;
First;
cd /var/discourse
we switch to the directory where Discourse is installed. Afterwards, we run the following 3 commands in order.
./launcher cleanup
apt-get autoclean
apt-get autoremove
3 prompts will appear, and we confirm with y (yes), and after waiting for a certain period, the cleanup is completed.