If you need to hide pages from search results, start by adding a "noindex" tag...
https://echo-wiki.win/index.php/How_to_Deindex_a_Whole_Directory_on_Your_Site:_The_Technical_Guide
If you need to hide pages from search results, start by adding a "noindex" tag to the page code. This tells Google to drop the content from its index permanently. If the page is already gone, return a 404 or 410 status code