function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yogesh BiyaniYogesh Biyani 

delete list views

I am trying to mass delete listviews from a test site using the workbench. Here is the destructivechanges.xml 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <name>ListView</name>
        <members>Case.All_Open_Requests</members>
        <members>Case.All_Open_Requests_Since_2016</members>
        <members>Case.All_Request_Created_Today</members>
    </types>
    <version>44.0</version>
</Package>

Here is the package.xml 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <version>44.0</version>
</Package>

Both of these are in a zip file changes.zip, and the workbench shows success but it is not deleted for the interface. What am I missing?
 
Deepali KulshresthaDeepali Kulshrestha
Hi Yogesh,

Greetings to you!

- You have to use __c for custom fields. 
-Please recheck your Object name and fields :-

Example : - 'MyCustomObject__c'

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>MyCustomObject__c</members>
        <name>CustomObject</name>
    </types>
</Package>

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha.
Yogesh BiyaniYogesh Biyani
Hello Deepali,

Thanks for the reply, however, I am trying to delete list views. 

Yogesh
Ajay Kumar 319Ajay Kumar 319
Hi Yogesh,
Can you please confrim how you mass deleted listviews.
Thanks,
Ajay