function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
UbaldoUbaldo 

Wipe-out an org?

Is there a one-step way to wipe-out an org?

I was able to do a one-step deploy by using the migration tool. Now, I want to do a one-step undeploy.

I tried renaming the package.xml to destructiveChanges.xml as I read over there, but it doesn't work. I got errors like these:

Error: workflows/Domain__c.workflow(Domain__c):Cannot delete a workflow object;

Workflow Rules and Actions must be deleted individually

Warning: destructiveChanges.xml:No CustomObject named: * found
Warning: destructiveChanges.xml:No ApexPage named: * found
Warning: destructiveChanges.xml:No ApexComponent named: * found
Warning: destructiveChanges.xml:No StaticResource named: * found

What I'm doing right now is to create a new org each time a new to do a fresh deploy.

I really hope this is already implemented, if not please advise me in where to ask this to salesforce technical support.

Thanks!

kevoharakevohara

Here, take a look at this.  Alex Sutherland put together this Ant project to wipe Developer Edition orgs clean once you sign up.  You could probably take this and modify it to meet your needs.

 

https://github.com/apexsutherland/cleanDEEs

UbaldoUbaldo

Thanks a lot. So it looks as I will need to create a destructiveChanges.xml file providing each metadata to delete, instead of a simple asterisk '*'. That'd be crazy to be done manually, so I will try to get the metadata information programmatically and then build the destructiveChanges.xml file.