Here’s how to unjoin or leave the domain via SSSD.

realm leave domain.com