Teardown
Delete all resources that the lab created. Then make sure that no resource remains.
./scripts/teardown.sh
The script asks for confirmation one time, then deletes the resources in the order of their dependencies. First, it deletes the Agent Runtime instance (with its sessions and memories) and the project roles of its identity. Next, it deletes the online monitor, the access policy and its policy binding, and the gateway with its authorization policy and extension. Then it deletes the Agent Registry entries, the three Cloud Run services, the image repository and the build sources. Last, it deletes the logs-based metrics and the dashboard. At the end, it lists each type of resource and fails if a resource remains:
If a deletion was not complete, run ./scripts/teardown.sh --verify-only again later. The script does not delete the project and does not disable APIs.
If you used a project only for this lab, you can delete the project. This removes all resources at the same time: gcloud projects delete YOUR_PROJECT_ID.