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
SFAdmin3SFAdmin3 

Can I use destructive changes to delete a custom button from a managed package?

HI! I am an admin and have used destructive changes to remove APEX before, but I am curious if I can use it to delete a custom button from a managed package. Here is what I pieced together, but it is not working:

Package: 
package.xml

<?xml version="1.0"?>

<!--?xml version="1.0" encoding="UTF-8"?-->

-<package xmlns="http://soap.sforce.com/2006/04/metadata">

<version>30.0</version>

</package>

Destructive Changes:
destructiveChanges.xml

<?xml version="1.0"?>

-<types>

<members>Opportunity.DeliveryStatus</members>

<members> Opportunity.DeliveryStatus </members>

<name>webLink</name>

</types>
 
VinayVinay (Salesforce Developers) 
No you can remove custom button from managed package.  You would need to either reach out to package provider or uninstall managed package.

Thanks,