LoginSignup
0
0

How to delete multiple metadatas By destructiveChanges.xml in Vscode

Last updated at Posted at 2024-02-04

Merit of deleting metadata using destructiveChanges.xml:
①Multiple metadata can be deleted at once。
The way of deleting metadata using destructiveChanges.xml:
①Create a folder on vscode and name it
image.png

②Create the following two files in the folder
a.package.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<version>58.0</version>
</Package>

b.destructiveChanges.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>「Metadata name to delete」</members>
<name>「Type of metadata to delete、ex:Layout」</name>
</types>
<version>58.0</version>
</Package>

image.png

③Run the below command in terminal
sfdx force:mdapi:deploy --deploydir=「⓵'s name」
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0