protected function _deleteObject( $network_id ) {
		global $wpdb;

		$network_blog = wp_get_sites( array( 'network_id' => $network_id ) );
		if ( ! empty( $network_blog ) ) {
			$suppress = $wpdb->suppress_errors();

			foreach ( $network_blog as $blog ) {
				wpmu_delete_blog( $blog->blog_id, true );
			}

			$wpdb->suppress_errors( $suppress );
		}

		$deleted = $wpdb->delete( $wpdb->site, array( 'id' => $network_id ), array( '%d' ) );
		if ( $deleted ) {
			$wpdb->delete( $wpdb->sitemeta, array( 'site_id' => $network_id ), array( '%d' ) );
			$this->_debug( 'Deleted network with ID: ' . $network_id );

			return true;
		}

		$this->_debug( 'Failed to delet network with ID: ' . $network_id );

		return false;
	}
protected function _deleteObject( $network_id ) {
		global $wpdb;

		$network_blog = wp_get_sites( array( 'network_id' => $network_id ) );
		if ( ! empty( $network_blog ) ) {
			$suppress = $wpdb->suppress_errors();

			foreach ( $network_blog as $blog ) {
				wpmu_delete_blog( $blog->blog_id, true );
			}

			$wpdb->suppress_errors( $suppress );
		}

		$deleted = $wpdb->delete( $wpdb->site, array( 'id' => $network_id ), array( '%d' ) );
		if ( $deleted ) {
			$wpdb->delete( $wpdb->sitemeta, array( 'site_id' => $network_id ), array( '%d' ) );
			$this->_debug( 'Deleted network with ID: ' . $network_id );

			return true;
		}

		$this->_debug( 'Failed to delet network with ID: ' . $network_id );

		return false;
	}
protected function _deleteObject ( $ network_id ) { global $ wpdb ; $ network_blog = wp_get_sites ( array ( 'network_id' => $ network_id ) ) ; if ( ! empty ( $ network_blog ) ) { $ suppress = $ wpdb -> suppress_errors ( ) ; foreach ( $ network_blog as $ blog ) { wpmu_delete_blog ( $ blog -> blog_id , true ) ; } $ wpdb -> suppress_errors ( $ suppress ) ; } $ deleted = $ wpdb -> delete ( $ wpdb -> site , array ( 'id' => $ network_id ) , array ( '%d' ) ) ; if ( $ deleted ) { $ wpdb -> delete ( $ wpdb -> sitemeta , array ( 'site_id' => $ network_id ) , array ( '%d' ) ) ; $ this -> _debug ( 'Deleted network with ID: ' . $ network_id ) ; return true ; } $ this -> _debug ( 'Failed to delet network with ID: ' . $ network_id ) ; return false ; }
Deletes previously generated network.

@since 1.0.0

@access protected
@global \wpdb $wpdb The database connection.
@param int $network_id The network id.
@return boolean TRUE on success, otherwise FALSE.
Deletes previously generated network .