How to Hide Media Cloud Admin Menus

function plt_hide_ilab_media_tools_menus() {
	//Hide "Media Cloud".
	remove_menu_page('media-cloud');
	//Hide "Media Cloud → Features".
	remove_submenu_page('media-cloud', 'media-cloud');
	//Hide "Media Cloud → Setup Wizard".
	remove_submenu_page('media-cloud', 'media-cloud-wizard');
	//Hide "Media Cloud → Settings".
	remove_submenu_page('media-cloud', 'media-cloud-settings');
	//Hide "Media Cloud → System Check".
	remove_submenu_page('media-cloud', 'media-tools-troubleshooter');
	//Hide "Media Cloud → Settings".
	remove_submenu_page('media-cloud', '#');
	//Hide "Media Cloud → Cloud Storage".
	remove_submenu_page('media-cloud', 'media-cloud-settings-pinned-storage');
	//Hide "Media Cloud → Batch Tools".
	remove_submenu_page('media-cloud', '#');
	//Hide "Media Cloud → Task Manager".
	remove_submenu_page('media-cloud', 'media-cloud-task-manager');
	//Hide "Media Cloud → Unlink From Cloud".
	remove_submenu_page('media-cloud', 'mcloud-task-unlink-media-task');
	//Hide "Media Cloud → Support".
	remove_submenu_page('media-cloud', '#');
	//Hide "Media Cloud → Forums".
	remove_submenu_page('media-cloud', 'https://talk.mediacloud.press');
	//Hide "Media Cloud → Documentation".
	remove_submenu_page('media-cloud', 'https://kb.mediacloud.press');
	//Hide "Media Cloud → Account".
	remove_submenu_page('media-cloud', '#');
	//Hide "Media Cloud → Affiliation".
	remove_submenu_page('media-cloud', 'media-cloud-affiliation');
	//Hide "Media Cloud → Upgrade".
	remove_submenu_page('media-cloud', 'media-cloud-pricing');
}

add_action('admin_menu', 'plt_hide_ilab_media_tools_menus', 1000000000);

Where do I put this code?