# Run Destructive Changes

This template will allow to mass delete certain metadata(s) in [AutoRABIT](https://www.autorabit.com/). Destructive Change is a .xml file that contains information about metadata you want to delete. List the elements you are trying to get rid of, save the file and run a standard script and your job is done.

To create this template, follow the below steps:

1. In the **Create Migration Template** screen, select the checkbox: **Run Destructive Changes.**
2. Next, upload the destructive manifest XML file. Click **Choose File** and upload the required XML file from your local system.
3. Click **Save**.&#x20;
4. Once the template is successfully created, you'll be redirected to the **Environment Provisioning History** screen.
5. Click on the **Run** button to run the current template on your destination org.
6. Select your **destination org** from the dropdown and enter the **email address(es)** to receive an email notification whenever the template is run.
7. To use the current template as the post-deployment during [CI/CD](https://www.autorabit.com/blog/avoid-these-common-salesforce-ci-cd-mistakes/), select the **Run Destructive Changes** checkbox under the **Post Deployment Steps** section. This is optional.
8. Click **Run**. For a detailed summary report of the operation carried out, please check the **View History** page.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/arm/arm-features/environment-provisioning/migration-template/run-destructive-changes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
