If you need to hide pages from search results, start by adding a "noindex" tag...
https://record-wiki.win/index.php/How_Do_I_Update_My_Sitemap_After_Deleting_Pages%3F_A_Technical_SEO_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 live for users