Title: Database Query Help
Last modified: August 20, 2016

---

# Database Query Help

 *  [WP Libra](https://wordpress.org/support/users/wpbum/)
 * (@wpbum)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/database-query-help-1/)
 * I am having a hard time to get this to work. Basically I want to make a function/
   query to delete all posts that have a custom field name of “database” and value
   of “1”.
 * So basically select post ID’s where meta_key name database has a meta_value of
   1 then delete all those posts IDs.
 * Any help would be appreciated!

The topic ‘Database Query Help’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [WP Libra](https://wordpress.org/support/users/wpbum/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/database-query-help-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
