deleteGeoLocation method

Future<bool> deleteGeoLocation(
  1. List<LocationEntity> locations
)

This operation deletes the geo location on the device.

Access Class: WRITE_SYSTEM

Implementation

Future<bool> deleteGeoLocation(List<LocationEntity> locations) async {
  loggy.debug('deleteGeoLocation');

  final responseEnvelope = await transport.securedRequest(
    uri,
    soap.Body(request: DeviceManagementRequest.deleteGeoLocation(locations)),
  );

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return true;
}