Questions tagged [destructivechanges.xml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Deployment of destructive changes to production and tests execution

We need to remove trigger and apex test class for it from production org. We've already put together destructiveChanges.xml and are going to deploy it to prod org via ant migration tool. The question ...
3
votes
1answer
75 views

Classifying metadata into destructiveChangesPre.xml vs destructiveChangesPost.xml

I understand how both destructiveChangesPre.xml & destructiveChangesPost.xml work, but I'm wondering if it's possible to algorithmically classify metadata deletions between the two (theoretically; ...
0
votes
1answer
45 views

Is it possible to deploy destructive change and new metadata in the same package.xml

Is it possible for exemple to deploy, in the same package, the action of destruct a field and create another in the same time? Or I need to deploy 2 differents packages in two times: - one to ...
4
votes
1answer
120 views

Is there a workflow for renaming or deleting metadata components purely with an SFDX developer flow?

We are currently migrating our Salesforce development workflows to sfdx. We have got CI up and running with CircleCI and really smooth deployments going for when there are additions to metadata or ...
0
votes
1answer
147 views

destructivechanges.xml build error - -Error: Not in package.xml

I set up and ran destructiveChanges.xml through the ANT tool to delete custom fields from the Activity object in the sandbox. I am getting an error - Error: Not in package.xml build file: <...
0
votes
1answer
54 views

How to delete unmanaged package along with all components from an org

We have an unmanaged package on an org with thousands of components in this package. And package has not been released yet. Now we'd like to do some clean up and remove this package along with all ...
5
votes
1answer
201 views

Delete email template folder with a destructive package

I want to delete a email folder (empty) with a destructive package but I can't make this work. I made a .zip with my 2 files : package.xml <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
1answer
1k views

deploying destructive changes

i'm deploying a destructive change (includes apex classes) into a production environment and it kick starts running all tests. This didn't happen when doing it on the sandbox environments. Any way I ...
1
vote
0answers
378 views

How can I delete field dependencies (controlling values) through destructive changes?

Is there a way to delete just the from my organization for specific fields through destructive changes? I know this can be acomplished through git, but afaik it will not actually remove the ...
3
votes
1answer
62 views

why is undeploy triggering all the apex test in production

I am using the ant migration tool. And this have never happened till today. The ant target to delete looks like <target name="undeployCode"> <sf:deploy username="${sfdc.username}" ...
0
votes
0answers
75 views

Error in deleting a trigger in Production: Invalid type: Schema.sObject

Using destructive package in workbench, I am trying to delete a custom trigger (not Managed) from Production built on Managed package object "Question" and I am getting the error: Invalid type: ...
1
vote
1answer
211 views

Deleting Classes

When you delete an Apex Class or Trigger is there a difference between doing it through an IDE vs a destructiveChanges.xml? Does using destructiveChanges.xml purge the Class completely? What are the ...
2
votes
1answer
49 views

In force.com IDE / eclipse: Is it possible to see a temporarily created destructiveChanges.xml when I delete metadata?

I use eclipse for deletions of layouts. Clicking through the UI it works just fine. But I have to do it over an over again on many orgs and now I want to automate that task with ant. Maybe I'm wrong ...
0
votes
0answers
747 views

Cause :UNKNOWN EXCCEPTION, Invalid Cross Reference ID During ANT undeployCode

I am trying to remove a class from my QAT using destructive.xml ANT script and getting the following exception. Failed to process the request successfully. Cause(UNKNOWN_EXCEPTION): ...
3
votes
2answers
519 views

What file structure is required when setting deployOptions.singlePackage to False

In using the metadata API to delete validation rules today, I ran into the issue described in this post, where i needed to set deployOptions.singlePackage to true, in order for the rules to get ...
0
votes
1answer
201 views

How to migrate a workflow trigger in salesforce xml?

how do I migrate a workflow trigger in the xml pacckage? For example, I can migrate a workflow Rule, next way: <types> <members>Opportunity.Update Opp Name</members> ...
3
votes
2answers
1k views

Using Workbench to deploy destructive change set to eliminate apex class in production

I ran into an Apex Class error while trying to deploy a vendor package in Production from our partial Sandbox. The Apex class is obsolete and we have decided to delete it. Not having any developer ...
1
vote
1answer
52 views

Can you automate a release that changes the type of a field that is referenced by a class?

The problem In production we have a field that is referenced by a class. We want to change that field from a 'text' field to a 'formula' field. In order to change the field from one type to another ...
0
votes
1answer
137 views

Trying to clear the unmanaged code in my Org using destructiveChanges.xml

I want to delete the unmanaged code present in my org using salesforce migration tool.While undeploying the components i'm facing a lot of errors like you cannot delete the following components as ...
5
votes
4answers
2k views

Deploying destructiveChanges.xml - Error parsing package.xml

Wondering if someone can help me with this. I'm trying to delete some components with the migration tool (Ant). However when I try to deploy, I'm getting the following error: *********** ...
2
votes
2answers
525 views

Unable to deploy destructivechanges.xml

I have a change set that is getting hung up on an old class that is no longer getting used so I want to delete it from our production environment. I have seen a bunch of posts on how to handle this ...
9
votes
2answers
2k views

Can you deploy “Tab Hidden” to a Custom Object on a Profile using metadata API? (tabVisibilities)

I have a custom object called MyCustomObject.object and a custom profile called MyCustomProfile.profile Currently the tab visibility of MyCustomObject is set to "Default On" for MyCustomProfile. <...
2
votes
1answer
568 views

Deleting page layouts with Andrew Fawcetts Deployment Tools?

Spinning up new orgs, our team is wasting a significat beef of time simply to cleanup the sample-data you get rolling into new vanilla orgs... Personally I think as partners we should get the option ...
11
votes
1answer
8k views

Deleting custom object via destructiveChanges.xml and Metadata API deploy()

I've created a custom object in a developer edition org with the sole intention of deleting it via the Metadata API as per Deleting Components from an Organization. To do this I created the following ...
2
votes
1answer
2k views

using metadata api to deploy destructive changes to delete custom fields

There is an issue that I would like to get some helps/advices. I'm creating a method in C# using Metadata API to deploy destructive changes to delete custom field as following: Create an empty ...
4
votes
1answer
3k views

DestructiveChanges.xml fails because component doesn't exist

I'm attempting to deploy a destructiveChanges.xml file. When I include <types> <members>Populate_Unit_Price</members> <members>Line_Item_Updated</members> &...
6
votes
1answer
620 views

Any way of resetting my development org to an empty state?

Is there currently any way to reset a salesforce development org to an empty state using the Migration tool. I am aware of destructiveChanges.xml but this seems to be giving me issues because of ...
2
votes
2answers
228 views

Can destructiveChanges.xml be invoked directly from the Force.com IDE without Ant?

In a couple of old projects we have an Ant target setup to run a deploy with a destructiveChanges.xml file specified. AFAIK the Force.com IDE "Deploy to Server..." takes no notice of this - Ant has ...
7
votes
1answer
2k views

Is it possible to delete a record type through Metadata API?

I'm deploying a destructiveChanges.xml file via Force.com Migration Tool to delete some listViews, Custom Fields, and Groups. I determined we also can remove some record types from Cases. I received ...
3
votes
2answers
3k views

How can I deploy and remove components in one step with the ant migration tool?

I am familiar with how to use the destructiveChanges.xml file to remove components from my org. But it seems like I have to deploy then delete or vice versa. Is there a way to set up a package so ...
14
votes
1answer
428 views

How can I delete a Development Package (not an Installed Package) programatically?

Under Setup > Create > Packages, I have deployed "packages" with prefix 033 Under Setup > App Setup > Installed Packages, I have installed "packages" also with prefix 033 I understand that it is ...
10
votes
4answers
17k views

How to delete a class from production using destructiveChanges.xml

Can any one tell me the steps to delete a class using destructiveChanges.xml
6
votes
4answers
2k views

Ant Migration Tool deleting objects with Rollup Summaries

I attended the Dreamforce '12 session Team Development and Release Management for ISVs and one segment of the session was about the tools FinancialForce use for blanking an org before deploying a ...