Salesforce Platform Developer I (legacy) — Question 53
What can be used to delete components from production?
Answer options
- A. A change set deployment with a destructiveChanges XML file
- B. A change set deployment with the delete option checked
- C. An ant migration tool deployment with a destructiveChanges XML file and an empty package.xml file
- D. An ant migration tool deployment with a desctuctiveChanges XML file and the components to delete in the package.xml file
Correct answer: C
Explanation
The correct answer is C because using an ant migration tool with a destructiveChanges XML file and an empty package.xml file allows for the removal of components without affecting other configurations. Options A and B are incorrect as they pertain to change set deployments, which do not support deletion in the same way. Option D is also incorrect because it requires components to be specified in the package.xml file, which contradicts the requirement for an empty package.xml.