When all packages from a given yum folder/path are deleted, Nexus proceeds to regenerate the xml.gz files with references to 0 packages e.g.
But does not regenerate the repomd.xml file. This leaves the repo in an inconsistent state where only partial metadata exists.
1. Create a yum hosted repo with a depth of 1.
2. Upload an rpm to this repo.
3. Wait for the metadata to generate then delete the rpm.
4. Wait again for the metadata to generate and observe via the browse view that the xml.gz files have been rebuilt, but there is no repomd.xml.
In this scenario It is expected that Nexus should be consistent i.e. Either generate all the metadata files or none of them.
All Metadata files are removed including repomd.xml