After using Ghost for a while, it was found that it takes up a lot of space. After checking the files, it was discovered that many files can be deleted directly.
Version History#
By default, using the ghost update
command to upgrade Ghost will keep the old version. After confirming that the new version is working fine, you can go to the versions
directory and delete the old version.
Logs#
Ghost will log runtime information by default. If there are no issues, these logs can be safely deleted.
You can quickly do this with the following command:
rm content/logs/*
Original Images#
Ghost compresses uploaded images by default. To avoid errors, the original images are kept with a _o
suffix, which can be removed directly:
find content/images/ | grep _o | xargs rm