How properly delete only one site (blog) from the Network in WordPress Multisite (WPMU)

I have a Network with ~30 sites. And I need to delete only one of them.

Could you please tell me how should I delete properly only one site from the Network WordPress Multisite (WPMU)?

Because when I have done it in the admin area side the site was deleted from the admin but the plugins and some other tables for this site are still in database and all files in website directory (blog.dir/id_of_the_site) are left too.

How properly could I do that?

Should I delete manually all tables with site ID (in table name) from database and then delete the website directory with files from blog.dir directory? Or should I do something else?

Perhaps do you know another way, more safety and properly?

P.S.

Also I’d like to know if it is possible to restore this site after these manipulations (from the backup) and what is algorithm, because I know that after deletion some data from wp_blogs table were deleted too? Thanks.

2 Answers
2

Have you considered wpmu_delete_blog?

http://codex.wordpress.org/Function_Reference/wpmu_delete_blog

Leave a Comment