I have a different suggestion!
Rather than creating 410 pages, you can set up redirects for the 404 links so they land on similar pages of your site. We have an entire walkthrough for making URL redirects within your Navigation settings. Keep in mind, these only work if the link being redirected is 404ing.
Google will purge your dead URLs eventually over time, but creating redirects will eliminate any disruption and also preserve the link quality & ranking of them for SEO purposes. It also prevents you having to manually remove all the pages from Google's index while sparing your visitors from encountering an error page. :)
Our business had a major pivot within 9 months launching. As such, approx 90% of our products were removed.
It was not possible to redirect these pages at all, as there was nothing similar to them remaining on the website. What you need to do in this case is delete them and let them 404. Submit a new sitemap to Search Console and request for your site to be recrawled over the next few months. Don't mark any of the errors as "fixed", just ignore them and let them 404.
Google will eventually stop indexing them.