Cannot delete Realm User


#1

I login to Realm by SyncCredentials allow create User as code below:

SyncCredentials credentials = SyncCredentials.usernamePassword(username, password, true);
    SyncUser.logInAsync(credentials, AUTH_URL, new SyncUser.Callback<SyncUser>() {
    }

And after I want to delete this User on Realm with code below:

 String id = SyncUser.current().getIdentity();
    PermissionUser permissionUser = realm.where(PermissionUser.class).equalTo("id", id).findFirst();
    if (permissionUser != null) {
    	permissionUser.getPrivateRole().removeMember(id);
    	permissionUser.getPrivateRole().deleteFromRealm();
    	if (permissionUser.getRoles() != null) {
    		permissionUser.getRoles().deleteAllFromRealm();
    	}
    	permissionUser.deleteFromRealm();
    }

This code run successfully but I have checked on Realm Studio, this User still existed.
Please help me this problem, thank you so much.