Deleting legal entity primary address using x++

How to delete legal entity primary address if primary field is set to yes.

or

How to change the country id in primary address.