WordPress Version: 6.5
/**
* Unregisters a font collection from the Font Library.
*
* @since 6.5.0
*
* @param string $slug Font collection slug.
* @return bool True if the font collection was unregistered successfully, else false.
*/
function wp_unregister_font_collection(string $slug)
{
return WP_Font_Library::get_instance()->unregister_font_collection($slug);
}