I implemented it locally and it seems to work.
Here is the code:
public void removeRemoteDevice(int instanceId) throws BACnetException {
RemoteDevice d = getRemoteDeviceImpl(instanceId, null, null);
if (d != null)
remoteDevices.remove(d);
else
throw new BACnetException("Unknown device: instance id=" + instanceId);
}