Remove mobile devices from exchange manually-activesync, android, iphone

Failed    Error:
The ActiveSyncDevice XXX/XX. cannot be found.

Exchange Management Shell command attempted:
Remove-ActiveSyncDevice -Identity "<path to device> /iPhone'

1-    It was an issue with security permissions on the user account. to fix this, i went to user account properties in AD -> Security -> Advanced and checked the "Include inherritable permissions from this object's parent" check box for Exchange Servers permission entries.

2-    CN=ExchangeActiveSyncDevices container. Under that, you should see any listed partnerships. You can delete from there.

NOTE-

If the device becomes "Lost", or moved within ad, you have to delete the device to bring it back.

If the profile becomes lost on the fone, it has broken the sync (sid) with the server, you delete the profile on the fone.

the original format:

Remove-ActiveSyncDevice -Identity 'domain/Users With no Policy/Username/ExchangeActiveSyncDevices/iPad§ApplVxxxxxxxxx'

the new format:

Remove-ActiveSyncDevice -Identity 'domain/Users/Username/ExchangeActiveSyncDevices/iPad§ApplVxxxxxxxxx'