If you need to pull pages from Google search results, you have a few clear...
https://wiki-net.win/index.php/Should_I_Use_404_or_410_to_Get_a_Page_Out_of_Google%3F_A_Technical_Guide
If you need to pull pages from Google search results, you have a few clear options. Use the "noindex" meta tag on the page to tell crawlers to drop it from their index. If the page is already gone, return a 404 or 410 status code