If you need to pull pages from Google search results, you have reliable...
https://www.logo-bookmarks.win/if-you-need-to-hide-pages-from-search-results-use-the-right-tool-for-the-job
If you need to pull pages from Google search results, you have reliable options. Use a noindex tag in your page code to tell search engines to stop indexing the content. If you deleted a page permanently, return a 404 or 410 status code