| 28 | | It seems @johnjamesjacoby is right that there is a ready function `wpmu_delete_blog` which also calls the `wp_delete_site` which also calls `wp_uninitialize_site` and supposedly deletes the corresponding uploads folder. Those functions might need to be revisited as it seems to be logical to delete those along when a subsite is deleted, otherwise a busy multisite can easily be bloated with unnecessary files or possibly have something like a checkbox for confirmation like what @mdifelice proposed, something like: |
| 29 | | |
| 30 | | https://www.screencast.com/t/tO4WHqjZnYO |
| | 28 | It seems @johnjamesjacoby is right that there is a ready function `wpmu_delete_blog` which also calls the `wp_delete_site` which also calls `wp_uninitialize_site` and supposedly deletes the corresponding uploads folder. Those functions might need to be revisited as it seems to be logical to delete those along when a subsite is deleted, otherwise a busy multisite can easily be bloated with unnecessary files or possibly have something like a checkbox for confirmation like what @mdifelice proposed, something like the attached image: |