Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-21 15:14:46

Qwest
Member
From: London, UK
Registered: 2007-01-24
Posts: 112

batch deleting images? Is it possible?

I’ve just been uploading 4000 images to textpattern, and it’s going swimmingly, however, i’ve uploaded 100 or so that are thumbnails as opposed to full-size images.

Is there a quick way of removing them? Or do i have to go through each one hitting the ‘X’ and then hitting yes, then waiting for the page to refresh?

Offline

#2 2007-09-21 17:40:25

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: batch deleting images? Is it possible?

Not from within standard TXP, but you could fire up PHPmyAdmin and mass-delete there and do the same with the actual image files.

Offline

#3 2007-09-21 22:22:15

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: batch deleting images? Is it possible?

sql query (thanks igner)

delete from txp_image where id between 43 and 167;

where image number 43,167 and every image in between get deleted.

Offline

#4 2007-09-23 06:22:16

Qwest
Member
From: London, UK
Registered: 2007-01-24
Posts: 112

Re: batch deleting images? Is it possible?

I was hoping there’d be a plugin that’ll allow me to view the images page like the articles page, and i could just tick the boxes, and then hit delete… Maybe that’s an idea for a future plugin!?

Thanks for the ideas tho, I’ll look into it. I’m not too confident when it comes to phpmyadmin

Offline

#5 2007-09-23 09:40:18

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: batch deleting images? Is it possible?

It’s something that really belongs in core, just like it’s done for articles.

Offline

#6 2007-09-23 12:33:05

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: batch deleting images? Is it possible?

ruud wrote:

It’s something that really belongs in core, just like it’s done for articles.

just curious, would this be something expected in 4.0.x? or is that too much of a change?

Offline

#7 2007-09-23 16:05:08

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: batch deleting images? Is it possible?

Probably not in 4.0.x. It’s not a minor change.

Offline

Board footer

Powered by FluxBB