Issue detail:
Was trying to decommission Exchange 2019, but was getting the following error.
"Error:
This computer is a member of a database availability group (DAG). It must be removed from the DAG before you can uninstall Exchange."
Resolution:
From role and feature, remove the failover cluster feature and reboot the system and then try again to start the uninstall from control panel/uninstall program.
the above error was no more.