If you need to hide pages from search results, start by adding a "noindex" tag...
https://wiki-view.win/index.php/How_Do_I_Spot_Conflicting_Index_and_Noindex_Directives%3F_A_Technical_Guide
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 page active for visitors