Problem redirecting old pages to error page 410.

I have problems removing old content from Google search results. One of the suggestions was to redirect the old pages to the 410 error page so that Google knows to leave these pages. The original website was created in wordpress. I'm using Netlify and hugo now. The old pages www.example.com/?product = .... where are my new pages www.example.com/products / ...... I tried / product / * 410.html 410 Y /? product / * 410.html 410 in my file _redirects but no luck. I also have https://prestoshears.netlify.com https://prestoshears.com 301 in _redirects. Some help?