No-index for categories

Hey Team.

Greetings!

I don’t want the categories page to be indexed by google. Is there any way that can be achieved?

I added - Noindex: /c/* to the robots.txt file but that did not help.

Again, only looking to Google to not index the categories page but the topics in it should not be affected.

Thanks in advance!