Jump to content
Sign in to follow this  

Delete unused/orphanned images

Recommended Posts

3 hours ago, keat said:

posting your brief instructions on here may help others in the future.


Yes @keat I agree.

My hosting company (20i.com, who are excellent btw) had instructions for connecting to the server using Putty for Windows. They also have instructions for Mac users but I have a PC.

Anyway, the first port of call was to download the software from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html and get it installed. I then followed the instructions from 20i to create a key and connect to the server. 

Once connected it was a very simple process of entering a few commands (I found a very useful reference for basic SSH commands at https://www.hostinger.co.uk/tutorials/ssh/basic-ssh-commands#gref)

So, for example; to move all images in the 'source' folder to a new folder called 'pictures' the commands once connected would be:

  • cd public_html/images/source/      (move to the 'source' folder)
  • mkdir pictures     (create the 'pictures' folder)
  • mv -t pictures pic1.jpg pic2.jpg pic3.jpg etc.jpg     (move list of image filenames to the 'pictures' folder)
  • exit

I had previously compiled my list of orphaned images using Store Health Check and Notepad++ which I copied and pasted into the command line by right clicking.

And that was it!

I am now a convert to SSH 😉


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...