This guide shows you how to delete Dynatrace configuration for Monaco resources.
You'll learn how to delete a Dynatrace configuration.
PATH.
The correct permissions depend on which APIs you use.
For more info, see the API documentation or IAM policy reference.slo:slos:readslo:slos:writeslo:objective-templates:readYou can delete deployed configurations using the monaco delete command.
If you haven't deployed any configurations yet, see Get started with configuration deployment for Monaco.
To delete your Monaco configuration, do the following:
Run the following command.
# Linuxtouch delete.yaml# WindowsNew-Item delete.yaml
Open the file in your text editor and paste the following configuration. Save the file.
delete:- project: my-slo-projecttype: slo-v2id: my-sample-slo
Run Monaco to delete the configuration, specifying the delete file and the manifest. This specifies in which environments the configuration should be deleted. Run the following command.
monaco delete --manifest manifest.yaml --file delete.yaml -e development-environment
A successful deletion returns output similar to that shown in the code block below.
time=2025-09-01T09:10:23.506+02:00 level=INFO msg="Monaco version 2.24.0"time=2025-09-01T09:10:23.751+02:00 level=INFO msg="Loading manifest \"{your full path to the file}\manifest.yaml\". Restrictions: groups=[], environments=[]" manifestPath="{your full path to the file}\manifest.yaml"time=2025-09-01T09:11:24.140+02:00 level=INFO msg="Deleting configs for environment \"development-environment\"..." environment.name=development-environment environment.group=grouptime=2025-09-01T09:11:24.140+02:00 level=INFO msg="Deleting 1 config(s) of type \"slo-v2\"..." type=slo-v2 environment.name=development-environment environment.group=group
Well done, you have successfully deleted your SLO configuration from your environment.
You've learned how to create a Monaco project, including configuration files, validate the syntax, deploy it to a target environment, and delete the configuration again.
You're all set to kick off your Dynatrace Configuration as Code project!