If you need to hide pages from search results, use the right tool for the job....
https://www.scribd.com/document/1016382702/Why-Did-My-Removed-Page-Come-Back-After-a-Search-Console-Removal-212072
If you need to hide pages from search results, use the right tool for the job. Add a "noindex" tag to the page header to tell Google to drop it from their index. If the content is already gone, return a 404 or 410 status code