Title: Remove page/post manually from database
Last modified: August 22, 2016

---

# Remove page/post manually from database

 *  [realmslayer](https://wordpress.org/support/users/realmslayer/)
 * (@realmslayer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/remove-pagepost-manually-from-database/)
 * Hi guys,
 * I ran into a problem with my WordPress installation where a random page was displayed
   on the front end, but was not visible in the admin portal.
    I did a but of research
   and found that no one really had a solution to this problem… so I took the challenge
   and figured it out 🙂
 * If you run into a similar issue and you need to remove a page/post manually follow
   the following steps:
 * 1) Identify what the rogue post/page’s post ID is
    – Once on the page, right 
   click in your browser and select “inspect element” – Right click `<div id="content"
   >...</div>`, edit as HTML, in there you should see the article ID (example: `
   <article id="post-96" class="post-96 page type-page status-publish hentry">`)
 * 2) Once this is done you may enter your DB editor, I specifically use MySQL Workbench,
   I like it, looks pretty 🙂
    – Go into your database and look up the _posts table(
   example: wp_posts) – In ID, find the post ID, as in this example, 96 – Now, delete
   the correct row and apply
 * 3) Refresh your browser (clear cache – best results), the page/post no longer
   exists.
 * I truly hope this helps those who had the same problem as me.

Viewing 1 replies (of 1 total)

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/remove-pagepost-manually-from-database/#post-5644119)
 * You may also find related data for the same post id in wp-postmeta.

Viewing 1 replies (of 1 total)

The topic ‘Remove page/post manually from database’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)
 * [unused](https://wordpress.org/support/topic-tag/unused/)
 * [unwanted](https://wordpress.org/support/topic-tag/unwanted/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/remove-pagepost-manually-from-database/#post-5644119)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
