If you need to hide pages from search results, start by adding a "noindex" tag...
https://www.tool-bookmarks.win/to-remove-a-page-from-google-search-results-you-have-two-primary-options
If you need to hide pages from search results, start by adding a "noindex" tag to the page header. This tells Google to drop the content from its index while keeping the URL active for visitors