Remove core and agent services

This section describes how to clean up the core and agent services.

Remove core and agent services simultaneously

Remove both core and agent services while preserving persisted data:
./deploy.sh cleanup --profile core --profile foundational-agents
Remove both core and agent services as well as the associated volumes:
./deploy.sh cleanup --profile core --profile foundational-agents --volumes
Remove both core and agent services as well as their volumes and images:
./deploy.sh cleanup --profile core --profile foundational-agents --volumes --images

Remove core services

Removes core services and associated data to reset the environment for a fresh deployment.

Run the following script to remove the core services and associated volumes:
./deploy.sh cleanup --profile core --volumes
Run the following command when you need to remove images:
./deploy.sh cleanup --profile core --volumes --images
Warning: The cleanup command with --volumes removes persisted service data. Use it only when you need a fresh deployment.

Remove agent services

Remove agent services and associated data to reset the environment and prepare for a fresh deployment.

Remove a specific agent and the associated volumes:
./deploy.sh cleanup --profile automation-insight-agent --volumes
Remove all foundational agents and the associated volumes:
./deploy.sh cleanup --profile foundational-agents --volumes
Warning: The cleanup command with --volumes removes persisted agent data. Use it only when you need a fresh agent deployment.