deploy a component to delete this core device

0

core device name: device0 component name: component0

Desired effect: deploy component0 to device0, and will delete device0

how to set component0

I can't delete the core device when I use this command in the component0: "aws greengrassv2 delete-core-device --core-device-thing-name $name"

asked a year ago278 views
2 Answers
0

Hello,

Greetings!

Please find the answer to your query mentioned below: As you might be aware, the following command is used to Delete a Greengrass core device, which is an AWS IoT thing. This operation removes the core device from the list of core devices. aws greengrassv2 delete-core-device —core-device-thing-name MyGreengrassCore

To delete a core device with the AWS Command Line Interface, use the DeleteCoreDevice (https://docs.aws.amazon.com/greengrass/v2/APIReference/API_DeleteCoreDevice.html ) operation. This link will also help you in case you are facing HTTP status code errors, while running the command.

I would also recommend to try to delete the device using the AWS IoT Greengrass console. Kindly refer to the point no 3 mentioned in the following link. [+] https://docs.aws.amazon.com/greengrass/v2/developerguide/uninstall-greengrass-core-v2.html

That being said, I hope the above provided information is helpful. Thank you and have a nice day ahead!

AWS
answered a year ago
0

The command you are using is the right one, assuming you to set the right permissions on the TES role assigned to the Greengrass Core device.

This said, what you are trying to do will not have any effect as long as Greengrass core device is connected to the Internet, since the core device will be recreated as soon as Greengrass reports the status of the deployment.

Can you share the reason why you are trying to delete the Greengrass core device from cloud?

AWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions