Cannot remove the local availability replica from availability group '%1!s!' from this instance of SQL Server. The availability ...

Cannot remove the local availability replica from availability group '%1!s!' from this instance of SQL Server.  The availability group is either being dropped, or the local availability replica is being disjoined.  Verify that the specified availability group name is correct.  Wait for the current operation to complete, then retry the command if necessary.