How to Hide WPBot ChatBot for WordPress for Live Support and Lead Generation Admin Menus

function plt_hide_chatbot_menus() {
	//Hide "ChatBot WPBot Lite".
	remove_menu_page('wpbot-panel');
	//Hide "ChatBot WPBot Lite → ChatBot WPBot Lite".
	remove_submenu_page('wpbot-panel', 'wpbot-panel');
	//Hide "ChatBot WPBot Lite → Settings".
	remove_submenu_page('wpbot-panel', 'wpbot');
	//Hide "ChatBot WPBot Lite → OpenAI Settings".
	remove_submenu_page('wpbot-panel', 'wpbot_openAi');
	//Hide "ChatBot WPBot Lite → Simple Text Responses".
	remove_submenu_page('wpbot-panel', 'simple-text-response');
	//Hide "ChatBot WPBot Lite → Support".
	remove_submenu_page('wpbot-panel', 'wpbot_support_page');
	//Hide "ChatBot WPBot Lite → Help and Debugging".
	remove_submenu_page('wpbot-panel', 'wpbot_help_page');
	//Hide "ChatBot WPBot Lite → Upgrade to Pro".
	remove_submenu_page('wpbot-panel', 'https://www.wpbot.pro/');
}

add_action('admin_menu', 'plt_hide_chatbot_menus', 21);

Where do I put this code?