If you need to hide pages from search results, start by adding a "noindex" tag...
https://hotel-wiki.win/index.php/I_Blocked_a_Page_in_Robots.txt_and_Now_Noindex_Won%E2%80%99t_Work%E2%80%94Why%3F
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 URL from its index naturally