Delete meta data by meta ID

Signature

delete_metadata_by_mid( $meta_type, $meta_id )
meta_type
 (string) Type of object metadata is for (e.g., comment, post, or user)
meta_id
 (int) ID for a specific meta row

Return

(boolean) True on successful delete, false on failure.

Source

function delete_metadata_by_mid( $meta_type, $meta_id ) {
	global $wpdb;

	// Make sure everything is valid.
	if ( ! $meta_type || ! is_numeric( $meta_id ) ) {
		return false;
	}

	$meta_id = absint( $meta_id );
	if ( ! $meta_id ) {
		return false;
	}

	$table = _get_meta_table( $meta_type );
	if ( ! $table ) {
		return false;
	}

	// object and id columns
	$column = sanitize_key($meta_type . '_id');
55 more lines...
WP Trac GitHub

Link here