I tried everything above, but I was still seeing it in the Endpoints Explorer. There a were couple of references to it in ~\obj\Debug\net9.0\ApiEndpoints.json Closing the project and cleaning out the ~\obj\Debug folder fixed it.