wp_delete_site
wp_delete_site ( $site_id )
Parameters:- (int) site_id ID of the site that should be deleted.
Returns:- (WP_Site|WP_Error) The deleted site object on success, or error object on failure.
Defined at: - Introduced in WordPress: 5.1.0
- Deprecated in WordPress: —
Description
Deletes a site from the database.