delete_site_meta_by_key( string $meta_key )

Deletes everything from site meta matching meta key.

Parameters

$meta_key

(string) (Required) Metadata key to search for when deleting.

Return

(bool) Whether the site meta key was deleted from the database.

Source

File: wp-includes/ms-site.php

function delete_site_meta_by_key( $meta_key ) {
	return delete_metadata( 'blog', null, $meta_key, '', true );
}

Changelog

Version Description
5.1.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/delete_site_meta_by_key