Combined with the fact that Google might list your site [based only on third-party links][1], robots.txt isn't an effective way to remove your site from Google's results.
Sorry, could have been clearer.
[1]: https://developers.google.com/search/docs/advanced/robots/in...
"If other pages point to your page with descriptive text, Google could still index the URL without visiting the page. If you want to block your page from search results, use another method such as password protection or noindex. "
Seems clear enough to me
“ For those of you who relied on the noindex indexing directive in the robots.txt file, which controls crawling, there are a number of alternative options:”
The first option is the meta tag. It does mention an alternative directive for robots.txt, however.
Google crawlers IPs https://www.lifewire.com/what-is-the-ip-address-of-google-81...
> If other pages point to your page with descriptive text, Google could still index the URL without visiting the page