今回は、例として
https://syn-c.jp/deindexed-file.pdf
このファイルをGoogle検索結果に表示させないようにする。

以下の記述をhtaccessに記載する。



<IfModule mod_headers.c>
  <Files "deindexed-file.pdf">
    Header set X-Robots-Tag "noindex, nofollow, noarchive, nosnippet"
  </Files>
</IfModule> 

Search Console左メニューの「サイトマップ」下の「非表示」を発見する。

手順
1)「非表示」をクリック
2)「新しいリクエスト」 を押す
3)「URLの一時的な削除」を選択
4)https://syn-c.jp/resume.pdf を入力して送信

→ 1日〜数日で検索結果から消える。
→ その後は .htaccess の X-Robots-Tag: noindex が効いて、恒久的に再表示されなくなる。