How to Hide Complianz | GDPR Cookie Consent Admin Menus

function plt_hide_complianz_gdpr_menus() {
	//Hide "Complianz".
	remove_menu_page('complianz');
	//Hide "Complianz → Dashboard".
	remove_submenu_page('complianz', 'complianz');
	//Hide "Complianz → Wizard".
	remove_submenu_page('complianz', 'cmplz-wizard');
	//Hide "Complianz → Script center".
	remove_submenu_page('complianz', 'cmplz-script-center');
	//Hide "Complianz → Settings".
	remove_submenu_page('complianz', 'cmplz-settings');
	//Hide "Complianz → Cookie Banner".
	remove_submenu_page('complianz', 'cmplz-cookiebanner');
	//Hide "Complianz → Upgrade to premium".
	remove_submenu_page('complianz', 'https://complianz.io/pricing');
}

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

Where do I put this code?