• Skip to main content
  • Skip to footer
  • Home
  • About
    • MyPE Copyright Terms
    • Authors
    • Deals
  • Info
    • Accommodation
    • Classified Adverts
    • Directory
    • Essential PE Numbers
    • Flight Schedules
    • Forex Converter
    • PE’s Online Radio Stations
      • Algoa FM
      • Bay FM
      • iFM
      • Kingfisher FM
      • MannMade Radio
      • Madibaz Radio
      • Umhlobo Wenene
    • Podcasts
    • Shipping
    • Street Map
    • Tides
    • Ward Details
    • Ward News
    • Weather
  • Contact
    • Advertising on MyPE
  • Submit
    • Blogger
    • 5 Quick PE Questions
    • Entertainment
    • Events
      • Add your Port Elizabeth event
    • Letter to the Editor
    • Lost and Found
    • Movers and Shakers
    • News Article
    • PE Videos
    • Photographs
    • Recipes
    • Traffic Hooligan
    • Say NO
  • Dam Levels
  • Advertorial
  • Business
  • NMBRA
  • NMB Rates
MyPE

MyPE

Community Business Directory, Event Listings, News and Views from Gqeberha, Nelson Mandela Bay

MySQL Command To Delete Only Certain WordPress Post Types via phpMyAdmin

21 June 2025 By Alan Straton

Here I am using posts created by the WP RSS Aggregator as an example.

This WordPress Plugin will Import and display RSS feeds anywhere on your site. Once you have set up any RSS feed you sit back and let Aggregator do the rest automatically as it creates a constant flow of fresh content to keep your audience engaged.

And, therein lies the rub, sometimes it runs and posts content that could harm your site or make it difficult for search engines to categorise just what your site is about.

AND then you sit with a situation where you will have thousands of posts to delete from your site.

Now the ‘traditional’ way to do so is to go to your WP Admin, select posts by post type and then delete 200 at a time.

You can select more than 200 but that could lead to processing hiccups and when you are trying to delete around 80 000 posts it can take a while.

The quickest way to mass delete posts is to use a MySQL operation on your posts.

You can:

  1. Select 500 posts at a time and delete OR
  2. You can write a MySQL command to do so

In my case I had a post type (wprss_feed_item) to help uniquely identify the posts I wanted to delete, my table name was a9_posts so the code was relatively simple:

DELETE FROM `a9_posts` WHERE `a9_posts`.`post_type` = ‘wprss_feed_item’;

Want to know how to get to the MySQL section of your web hosting?

  1. Go onto your web site hosting control panel.
  2. Look for a phpMyAdmin link and sign in
  3. Look for your ‘posts’ table and click on it
  4. The BROWSE tab will open
  5. SELECT the SQL Tab, drop the above code in and press Go

VERY NB: The above method is NOT reversible so if you are not sure then please save a backup of your table BEFORE running the command. To do so you click on the EXPORT tab when you are viewing your POSTS. If you make a boo boo then you can IMPORT your saved file to restore everything.

If all else fails Contact Me for assistance (which is a polite way of saying that you will be charged!).

DON’T FORGET: If you are deleting WPRSS created content you will also need to scroll down to the table named wprss_logs and delete that content as well.

You can more easily delete that content by:

  1. Clicking on the wprss_logs table
  2. Clicking on the OPERATIONS Tab
  3. Scrolling down to the ‘Delete data or table’ option and ‘Empty the table’ if you intent keeping WPRSS running or ‘Delete the table’ if you no longer require WPRSS Aggregator.
What phpMyAdmin looks like for a WordPress Site. Photo: MyPR

Video: MySQL Command To Delete Only Certain WordPress Post Types via phpMyAdmin

CLICK HERE to submit your press release to MyPR.co.za.

Pages: Page 1 Page 2

Read More on MyPR.co.za

The following two tabs change content below.
  • Bio
  • Latest Posts
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Flickr profileMy Pinterest profile

Alan Straton

Chief Cook, Bottle Washer and Broom Mechanic at MyPE
Passionate about Port Elizabeth and definitely NOT packing for Perth. Alan's ethos is epitomised in the words of Nelson Mandela; "I have fought against white domination and I have fought against black domination. I have cherished the idea of a democratic and free society. If need be, it is an ideal for which I am prepared to die." See more articles by Alan.
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Flickr profileMy Pinterest profile

Latest posts by Alan Straton (see all)

  • South African Artist MARTHINUS Releases Debut Single - 6 November 2026
  • MARTHINUS Releases Heartfelt Debut ‘i miss us not trying’ - 6 November 2026
  • LaserWeeder Hire Runs Laser Units for SA Vegetable Growers - 6 November 2026
  • HandPrinter Art Runs Linocut Workshops and Beginner Kits - 6 November 2026
  • Feature Equipment Adds AM.CO.ZA Tooling and Laser Spares Shelf - 6 November 2026

Filed Under: Business Tagged With: mypr

Footer

RSS Straton Electrical

  • Open Cycle Gas Turbine Usage
  • Flattening the curve – What Every Solar Installer Needs to Know
  • Why you shouldn’t leave a charger plugged in when not in use
  • How do I check if an Electrician is properly registered in South Africa?
  • Easy Electrical Troubleshooting for Humans
  • Water – If You Cannot Measure It Then You Cannot Manage It
  • Tips To Survive Loadshedding
  • Eskom’s Top 50 Electricity Saving Tips

RSS MyPE Business News

  • NMBBC On Budget 2025
  • Leading Business Minds Set to Headline Chambers Annual General Meeting
  • Bay of Opportunity Portal
  • Bay of Opportunity Ambassadors Programme to Promote the Bay and Attract Investment
  • 6 Decades of Trucking
  • Thermal Camera Installed at Redhouse Substation
  • Finalist in the 2025 South African Car of the Year
  • Joining hands to create a lasting impact to St Albans Primary School

RSS MyPR Press Releases

  • New Private Air Ambulance Service Launches in Polokwane
  • GBV Prevention Must Start With Boys, Says Founder, Launching Football Led Youth Development Programme
  • Buy Now, Regret in January: The Hidden Cost of Black Friday Credit
  • Three Years at the Top: Publicis Groupe Africa Builds a New Era of African Creative Excellence
  • Muslim World League’s “Minhaj” App Participates in Hajj Conference and Exhibition 2026 in Jeddah

How you may use MyPE content © 2026 MyPE · Gqeberha, South Africa | Privacy Policy | MyPE Ads and Media Kit