This tells crawlers not to fetch any URL containing ?remove_item=.
Google respects this and will stop crawling these URLs over time (they may still appear in the crawl stats for a while, but activity drops quickly).
Add rel=“nofollow” to the “Remove” links
You can filter WooCommerce’s remove-item link and add a nofollow attribute, for example in your child theme’s functions.php or a code snippets plugin: