Cleaning the content folder of old images from deleted posts

I’m new to hosting/running Ghost on Digital Ocean.

If you have a post with a lot of images in it, but then delete the post, the images are still stored on the server in the /content/images directory.

Is there a way to automate a cleaning and purging of unused images?

Thanks!

2 Likes

hey @bershatsky this open source tool could help you :slight_smile: GitHub - ghostboard/ghost-purge-images: CLI tool to display & purge the uploaded images, video and audio files that currently are not used in any post, page or meta data

3 Likes

That’s awesome! Thanks!

I’ll check it out!

Best regards

Noah

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.