# 정리하기(Optional)

Wordpress를 삭제합니다.

```
helm -n wordpress-cwi uninstall understood-zebu

kubectl delete namespace wordpress-cwi
```

아래 명령어를 수행하여 cluster에  Container Insights 를 삭제 합니다.

```
curl -s 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}}/eksworkshop-eksctl/;s/{{region_name}}/${AWS_REGION}/" | kubectl delete -f -
```

Node IAM Role에서 '_CloudWatchAgentServerPolicy'_ policy 를 제거합니다.

```
aws iam detach-role-policy \
  --policy-arn arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy \
  --role-name ${ROLE_NAME}
```

{% hint style="success" %}
Container Insights 실습을 완료하였습니다.
{% endhint %}
