Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
DevOps for Salesforce

You're reading from  DevOps for Salesforce

Product type Book
Published in Sep 2018
Publisher
ISBN-13 9781788833349
Pages 220 pages
Edition 1st Edition
Languages
Concepts
Authors (2):
Priyanka Dive Priyanka Dive
Profile icon Priyanka Dive
Nagraj Gornalli Nagraj Gornalli
Profile icon Nagraj Gornalli
View More author details
Toc

Table of Contents (14) Chapters close

Title Page
Packt Upsell
Contributors
Preface
1. Salesforce Development and Delivery Process 2. Applying DevOps to Salesforce Applications 3. Deployment in Salesforce 4. Introduction to the Force.com Migration Tool 5. Version Control 6. Continuous Integration 7. Continuous Testing 8. Tracking Application Changes and the ROI of Applying DevOps to Salesforce 1. Other Books You May Enjoy Index

Deleting files/components from a Salesforce organization using destructiveChanges.xml


We have seen we can retrieve metadata from a sandbox, and we can deploy changes to a sandbox using the Ant Migration Tool. But sometimes we don't need some features and we want to delete some components or files such as objects, fields, and so on from our Salesforce organization. We need to create one more file along with package.xml that is destructiveChanges.xml. The format of the destructiveChanges.xmldelete manifest will be the same as package.xml, only wildcard characters are not accepted in a delete manifest.

Delete component is same process as deploying components with delete manifest file. We need to add a list of the components to delete in destructiveChanges.xml. A sample file to delete a custom object is as follows:

<?xml version="1.0" encoding="UTF-8"?> 
    <Package xmlns="http://soap.sforce.com/2006/04/metadata"> 
    <types> 
        <members>MyTestObject__c</members...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}