Get started with configuration deletion for Monaco

  • Latest Dynatrace
  • Getting started guide
  • 2-min read
  • Published Feb 26, 2026

This guide shows you how to delete Dynatrace configuration for Monaco resources.

What will you learn?

You'll learn how to delete a Dynatrace configuration.

Before you begin

Prerequisites

  • Install Monaco and make the executable available in your PATH. The correct permissions depend on which APIs you use. For more info, see the API documentation or IAM policy reference.
  • Dynatrace environment and permissions to create an authentication token/credentials. For more information on using a Dynatrace trial client, see Dynatrace trial.
  • Create an platform token with the following permissions:
    • slo:slos:read
    • slo:slos:write
    • slo:objective-templates:read

Get started with Dynatrace configuration deletion

You 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:

  1. Run the following command.

    # Linux
    touch delete.yaml
    # Windows
    New-Item delete.yaml
  2. Open the file in your text editor and paste the following configuration. Save the file.

    delete:
    - project: my-slo-project
    type: slo-v2
    id: my-sample-slo
  3. 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

Expected result

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=group
time=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

Congratulations!

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.

Next steps

You're all set to kick off your Dynatrace Configuration as Code project!

Related tags
Software Delivery