Uninstall OneAgent from Cloud Foundry
Find out below how to uninstall OneAgent according to your particular deployment strategy. For a clear view of all the deployment alternatives, see Cloud Foundry deployment strategies.
Uninstall OneAgent Operator for BOSH release
Update the runtime configuration.
Uninstalling OneAgent for BOSH add-ons requires that you update the runtime configuration with an “empty” manifest and redeploy all BOSH deployments that are executed by the add-ons.
Example of empty runtime configuration:1releases:2 - name: dynatrace-oneagent3 version: 1.1.04 #specify version of latest release
Update the runtime configuration without Dynatrace-related jobs.1bosh -e my-env update-runtime-config PATH/runtime-config-uninstall-dynatrace.yml
Deploy your changes and uninstall Dynatrace.1bosh -e my-env -d deployment deploy
Uninstall OneAgent for application-only monitoring
OneAgent is injected when the Dynatrace service is bound to the application. By unbinding the service, the OneAgent will no longer be injected (it's then uninstalled).
Unbind the service.1cf unbind-service <app-name> <service-instance-name>
Restage the application.1cf restage <app-name>
optional To delete a service if it's no longer required (applies generically to both CUPS and service broker):
1cf delete-service <service-instance-name>