Is there a way to only have 1 index.html page?

Right now when I make my website there is /index.html. There is also /categories/index.html, posts/index.html, /search/index.html, etc. Is there a way in hugo (or papermod) to only have 1 index.html (the main one /index.html)?

use disableKinds option:

# config.toml
disableKinds = ["page", "section", "taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"]

my config is in yml.

I have tried:
disableKinds: index
disableKinds: index.html
disableKinds: [index]
disableKinds: [index.html]
disableKinds: "index"
disableKinds: "index.html"
disableKinds: ["index"]
disableKinds: ["index.html"]

None of them appear to be working. There are still multiple index.html files in the public folder. I see the documentation you linked says " Allowed values in this list: "page", "home", "section", "taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"." Does it only allow the values listed? If so that would explain why it’s not working. index.html is not on that list.

config above will only render the home kind.

Yes, only Hugo Kind keywords