Deleting the CloudWatch agent and Fluentd for Container Insights - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Deleting the CloudWatch agent and Fluentd for Container Insights

To delete all resources related to the CloudWatch agent and Fluentd, enter the following command. In this command, Cluster is the name of your Amazon EKS or Kubernetes cluster, and Region is the name of the Region where the logs are published.

curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml | sed "s/{{cluster_name}}/Cluster_Name/;s/{{region_name}}/Region/" | kubectl delete -f -