Title: wpmu_drop_tables
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘wpmu_drop_tables’, string[] $tables, int $site_id )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#wp--skip-link--target)

Filters the tables to drop when the site is deleted.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#parameters)󠁿

 `$tables`string[]

Array of names of the site tables to be dropped.

`$site_id`int

The ID of the site to drop tables for.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#source)󠁿

    ```php
    $drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $site->id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ms-site.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/ms-site.php#L832)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/ms-site.php#L832-L832)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_uninitialize_site()](https://developer.wordpress.org/reference/functions/wp_uninitialize_site/)`wp-includes/ms-site.php` |

Runs the uninitialization routine for a given site.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wpmu_drop_tables/?output_format=md#changelog)󠁿

| Version | Description | 
| [MU (3.0.0)](https://developer.wordpress.org/reference/since/mu.3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwpmu_drop_tables%2F)
before being able to contribute a note or feedback.