Building AI-Assisted Operations: Agentic AI Workshop


Chapter 5: Housekeeping

Time to clean up. In this chapter, we’ll destroy all the resources we created to avoid unnecessary charges on your DigitalOcean account.

Goals

Estimated Time: 15 minutes


Before You Begin

Warning: This will permanently delete all resources. Make sure to:

  1. Save any work or configurations you want to keep
  2. Export any Grafana dashboards you created
  3. Note any custom agents you’d like to recreate later

Step 1: Destroy Chapter 4 Resources

The multi-agent setup and faulty deployment:

cd cfgmgmtcamp-2026-multi-agent
pulumi destroy --yes
pulumi stack rm dev --yes

Step 2: Destroy Chapter 3 Resources

The monitoring stack and sample application:

cd ../cfgmgmtcamp-2026-platform
pulumi destroy --yes
pulumi stack rm dev --yes

Step 3: Destroy Chapter 2 Resources

Kagent, kmcp, and all AI agents:

cd ../cfgmgmtcamp-2026-kagent
pulumi destroy --yes
pulumi stack rm dev --yes

Step 4: Destroy Chapter 1 Resources

The DigitalOcean Kubernetes cluster:

cd ../cfgmgmtcamp-2026-agentic-ai-workshop
pulumi destroy --yes
pulumi stack rm dev --yes

Note: This step takes 5-10 minutes as DigitalOcean deprovisions the cluster.

Step 5: Verify Cleanup

Check Pulumi Cloud

Visit app.pulumi.com and verify that all stacks are removed.

Check DigitalOcean Console

Visit the DigitalOcean Console and verify:

Check for Orphaned Resources

If you see any orphaned resources in DigitalOcean, you can delete them manually:

# List all Kubernetes clusters
doctl kubernetes cluster list

# Delete a cluster manually if needed
doctl kubernetes cluster delete <cluster-id>

# List all Load Balancers
doctl compute load-balancer list

# List all Volumes
doctl compute volume list

One-Command Cleanup (Alternative)

If you prefer to clean everything at once, create this script in the parent directory of your project folders:

#!/bin/bash
# cleanup.sh - Run from the parent directory containing all workshop project folders

set -e

echo "Destroying Chapter 4..."
cd cfgmgmtcamp-2026-multi-agent && pulumi destroy --yes && pulumi stack rm dev --yes --force 2>/dev/null || true
cd ..

echo "Destroying Chapter 3..."
cd cfgmgmtcamp-2026-platform && pulumi destroy --yes && pulumi stack rm dev --yes --force 2>/dev/null || true
cd ..

echo "Destroying Chapter 2..."
cd cfgmgmtcamp-2026-kagent && pulumi destroy --yes && pulumi stack rm dev --yes --force 2>/dev/null || true
cd ..

echo "Destroying Chapter 1..."
cd cfgmgmtcamp-2026-agentic-ai-workshop && pulumi destroy --yes && pulumi stack rm dev --yes --force 2>/dev/null || true
cd ..

echo "Cleanup complete!"

Run it:

chmod +x cleanup.sh
./cleanup.sh

Clean Up Local Files

Remove generated files:

# Remove kubeconfig files
rm -f cfgmgmtcamp-2026-agentic-ai-workshop/kubeconfig.yaml

# Remove node_modules (optional, to save space)
rm -rf cfgmgmtcamp-2026-*/node_modules

Final Checklist

Before leaving, verify:

Thank you

Thank you for attending the Building AI-Assisted Operations: Agentic AI Workshop.

This workshop covered deploying Kubernetes-native AI agents with Kagent, using MCP to connect agents to external tools, creating multi-agent systems that coordinate autonomously, and using Pulumi for infrastructure as code.

Stay Connected

Feedback

We’d love to hear your feedback! Please fill out the workshop survey (link provided by instructors).


See you at the next CfgMgmtCamp.