How to downgrade the SonarQube edition

For the past many years, we have been using the SonarQube Developer Edition. Our existing SonarQube Developer Edition needs to be downgraded to any free/community edition as we started using SonarCloud. This SonarQube is now operating in an AWS docker container. Could anyone please suggest an easy way to do the edition downgrade?

This should be possible by simply updating your installation with any community edition of a SonarQube release that is not lower than your current one (due to a database upgrade when updating to a newer release).

Are you aware that branch or pull request analysis are no longer available in the community edition for several years?