7 echo "ONAP component name missing"
8 echo "Usage: ./cleanup.sh onap_component_name"
14 if [ $COMPONENT == "dcae" ] || [ $COMPONENT == "DCAE" ]; then
15 kubectl delete service consul -n onap
18 for op in secrets configmaps pv services deployments statefulsets; do
19 ARRAY=(`kubectl get $op -n onap | grep dev-$COMPONENT | awk '{print $1}'`)
20 for i in ${ARRAY[*]}; do
21 kubectl delete $op -n onap $i