noindex is an instruction that tells search engines to keep a page out of their search results. It can be given in two ways: as a meta robots tag in the page's HTML head, or as an X-Robots-Tag HTTP header sent with the response. Both say the same thing. The crawler may visit the page and read it, but should not list it.
It works in three steps. The search engine crawls the page, reads the directive and then drops the page from its results, or never adds it. This is not instant. The page can remain in results until the engine next visits and processes the change.
The detail that trips people up is that noindex only works if the crawler can reach the page. If a Disallow rule in robots.txt blocks the URL, the crawler never sees the noindex, and the address can still appear in results as a bare link. To remove a page from search, leave it crawlable and mark it noindex.
It is useful for pages that should work for visitors but have no business in search: thank-you pages, internal search results, staging copies, login screens and thin tag pages. It is not a security measure, since the page stays reachable to anyone with the link. It also differs from a canonical tag or a 301 redirect, which point to another URL rather than removing a page.
An example: a form confirmation page sets a robots meta tag with the value noindex.
Related: Disallow, X-Robots-Tag, duplicate content, crawl budget