Title: Delete Database Tables
Last modified: April 6, 2019

---

# Delete Database Tables

 *  Resolved [mintjelly](https://wordpress.org/support/users/mintjelly/)
 * (@mintjelly)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/delete-database-tables/)
 * I have deleted this plugin but find all the tables remain in the database. I 
   get a message saying that due to a foreign key I cannot delete these tables. 
   Can you please, in lay terms as I am not a database expert, provide information
   for removing the Download Monitor db tables.
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Eric Phillips](https://wordpress.org/support/users/nekvt/)
 * (@nekvt)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/delete-database-tables/#post-11402477)
 * The dangerous way, assuming that you’re using phpMyAdmin to run queries against
   your database, is to disable foreign key checks while dropping these tables [as shown here](https://i.imgur.com/8Lcoj2v.png).
 * The cleanest way is to find and drop the references to the Download Monitor table(
   s) [as described here](https://stackoverflow.com/a/11100985).
 *  Thread Starter [mintjelly](https://wordpress.org/support/users/mintjelly/)
 * (@mintjelly)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/delete-database-tables/#post-11402495)
 * Hi,
 * Thank you. I’ll try this.
 * I just have to wonder why, when you delete a plugin, that tables are left in 
   the database at all.
 *  [Bart Kuijper](https://wordpress.org/support/users/spartelfant/)
 * (@spartelfant)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/delete-database-tables/#post-11409093)
 * [@mintjelly](https://wordpress.org/support/users/mintjelly/) Consider the alternative,
   a plugin silently deleting all the custom posts you made upon uninstalling it.
 * Anyway the easiest way is to reinstall this plugin, then go to its Settings page,
   select the Misc tab, enable the ‘Remove Data on Uninstall?’ option and then uninstall
   it again.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Delete Database Tables’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)

 * 3 replies
 * 3 participants
 * Last reply from: [Bart Kuijper](https://wordpress.org/support/users/spartelfant/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/delete-database-tables/#post-11409093)
 * Status: resolved