Deleting a service-linked role for Amazon IoT SiteWise
If a feature or service requiring a service-linked role is no longer in use, it's advisable to delete the associated role. This is to avoid having an inactive entity that isn't being monitored or maintained. However, you must clean up the resources for your service-linked role before you can manually delete it.
Note
If the Amazon IoT SiteWise service is using the role when you try to delete the resources, then the deletion might fail. If that happens, wait for a few minutes and try again.
To delete Amazon IoT SiteWise resources used by the AWSServiceRoleForIoTSiteWise
-
Disable logging for Amazon IoT SiteWise. For more information, see Changing your logging level
-
Delete any active SiteWise Edge gateways.
To manually delete the service-linked role using IAM
Use the IAM console, the Amazon CLI, or the Amazon API to delete the AWSServiceRoleForIoTSiteWise service-linked role. For more information, see Deleting a Service-Linked Role in the IAM User Guide.