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"

已提問 1 年前檢視次數 287 次
2 個答案
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
已回答 1 年前
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
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南