Removing unused images

I found the ghost purge npm package but I’m getting an error running this that it cannot find module config.production.json from the images folder.

Is this because I’m on Ghost 5.X or am I doing something wrong?

Is there any other solution to removing unused images from Ghost? Or do I need to do that one by one on my digital ocean CLI?

This tool isn’t made by Ghost, so I can’t speak to its efficacy or whether it works with v5.

Where are you running the tool (it should be on the server)? It looks like it uses that file to determine your Ghost URL.