deleteCoreDevice method
Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This operation removes the core device from the list of core devices. This operation doesn't delete the AWS IoT thing. For more information about how to delete the AWS IoT thing, see DeleteThing in the AWS IoT API Reference.
May throw ValidationException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ConflictException.
Parameter coreDeviceThingName
:
The name of the core device. This is also the name of the AWS IoT thing.
Implementation
Future<void> deleteCoreDevice({
required String coreDeviceThingName,
}) async {
ArgumentError.checkNotNull(coreDeviceThingName, 'coreDeviceThingName');
_s.validateStringLength(
'coreDeviceThingName',
coreDeviceThingName,
1,
128,
isRequired: true,
);
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/greengrass/v2/coreDevices/${Uri.encodeComponent(coreDeviceThingName)}',
exceptionFnMap: _exceptionFns,
);
}