How can I bulk delete all images in Wordpress?

margarita

Member
Registered
Joined
Mar 11, 2014
Messages
32
Points
0
Hello,

I have about 8000 images on a blog and when I created a clone blog on a new web hosting to use existed word press theme and removed all old posts, avoid duplicated content from original blog.

But in wp-admin, i still have seen 8000 images in media section, I want to remove all images to upload new images to this new blog. Is it possible?

Please suggest me

Thanks
 

elcidofaguy

Well-known member
Registered
Joined
Jan 13, 2015
Messages
866
Points
0
Hi Margarita,

Here is a quick fix...

Logon to your webhosts cpanel and use file explorer to navigate to your websites image folder where you can just delete them... The path will be something like:

website name | wp-content | uploads | Year | Month

With this way you can group select delete as with windows file explorer....

Hope that helps!
 

Hassan

Well-known member
Registered
Joined
Nov 11, 2014
Messages
433
Points
0
Backup First Locate your WordPress database in phpMyAdmin, then run this SQL command to delete ALL attachments:

Code:
DELETE FROM `wp_posts` WHERE `post_type` = "attachment"
 

elcidofaguy

Well-known member
Registered
Joined
Jan 13, 2015
Messages
866
Points
0
Dear Margarita

Here is a video outlining the steps as per Hassan's excellent post above.... which will complete the job of removing the images with using phpMyAdmin in order to remove the dud entries in WP database...

Best of Luck!

[video=youtube;rPPf2frn4g8]https://www.youtube.com/watch?v=rPPf2frn4g8[/video]
 
Newer Threads
Replies
4
Views
3,340
Replies
2
Views
2,791
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top