If you want to hide any url of your website temporarily, then go to search console and click on legacy tools and report option. After that, click on Removal and hide the url. But, if you want them to remove permanently, then the task is little technical.
There are several ways through which you can remove the url permanently.
Learn how to block Google and other search engines from retrieving web pages on your site.
Control what you share with Google
Generally, these are some issues that are to be taken seriously. You might have private data hosted on your site that you want to keep other users from accessing. Your website might have the same content in different places, which could negatively impact your page rankings in Google Search. To stop Google from going to that page, you have to use robots.txt file.
What is a robots.txt file?
Robots.txt file is a txt file that tells the search engine crawlers which pages or files the crawler can or can’t request from your site. But there is a particular condition on which robots.txt file applies. You should not use robots.txt file to hide your web pages from Google Search results. If you block your web page with robots.txt file, it will still appear in search results. Before you create or edit robots.txt, you should know the limits of this URL blocking method. If you want to block your page from search results, use another way, such as password protection or a noindex directive. We will further discuss robots.txt in our other blog. Let us come to the topic.
Block search indexing with ‘noindex’
You can prevent a page from appearing in Google Search by including a noindex meta tag in the page’s HTML code, or by returning a ‘noindex’ header in the HTTP request. When Googlebot next crawls that page and sees the tag or header, Googlebot will drop that page entirely from Google Search results, regardless of whether other sites link to it. But the page should not be blocked by robots.txt file.
There are two ways to implement this method.
Just paste the code in the <head> section of the web page.
<meta name=”robots” content=”noindex”>
To prevent the page only from google. Then simply use this code.
<meta name=”googlebot” content=”noindex”>
There is another way of blocking url to come on the search result page. Use the X-Robots-Tag header with a value of either noindex or none in your response.
HTTP/1.1 200 OK
Date: Tue, 25 May 2010 21:42:43 GMT