With the documentation generation in #1500 and #1493 the .adoc files are generated in docs/modules/ROOT/pages. A document created prior to it's abandonment, for example if a command or a Rego builtin is removed, will not be removed.
The document generation code should keep track of any abandoned components and remove the corresponding Asciidoc files.