0

Is it possible to wipe out everything from your dev org? Everything includes all records (custom as well as standard), all components like classes, triggers, etc, all workflows, profiles and permission sets, all Users.

In short make my dev org as brand new blank org where I can start fresh.

The reason I want to do this is I do not want to have new OrgId and raise case with Salesforce to increase my limits on Custom labels. Also I will not have to re-setup my code repository.

I have checked Permanent delete Custom Objects and Custom Fields, destructiveChanges.xml but not sure whether this will help.

0

Not really.

You can try to delete all of the Apex classes, Visualforce pages, custom objects, and other visible customizations. To do so, you'd need to construct a destructiveChanges.xml manifest, perhaps using a tool like the Force.com IDE (disclaimer: about to be end-of-lifed) to determine the full scope of metadata in the org.

But there are some things you cannot delete or reset in an org at all:

  • You can't delete Users (you can deactivate them).
  • Removing the first Record Type on any object is difficult and time-consuming (you have to unstitch it from all of the Profiles where it became the default).
  • Some features cannot be turned off at all. Person Accounts, for example, is a one-way trip.
  • There are still quite a few things that are beyond the reach of the Metadata API, so any changes to those areas must be evaluated and altered by hand.

And there are other changes that you cannot delete and which don't have a factory-reset switch, like all of the Settings entities in the Metadata API. You'd need to manually review all of that feature-level configuration and reset it to what you consider an empty or starting state.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.