Salesforce How To Delete Apex Class From Production
ฝัง
- เผยแพร่เมื่อ 5 ส.ค. 2024
- How to delete apex class and triggers from production.
We will be using two files destructiveChanges.xml and package.xml and uploading this to workbench to remove metadata from our ord.
Subscribe for more videos like this: bit.ly/2ZjoZ8h
Development Documentation developer.salesforce.com/docs...
Workbench workbench.developerforce.com/...
Want to take your #Salesforce Knowledge to the next level? Want to learn advanced Salesforce #admin, #developer, #consultant skills? Want to pass the certification exams the first time? Go to salesforcementor.com/ new course content every week to keep you fresh.
There you will find my outlined path to becoming an expert in Salesforce.
Thanks for watching.
Follow me on twitter / thewalters954
Salesforce stream every Sunday @10pm EST / walters954
Connect with me on LinkedIn / walters954 Recommended Books
Advanced Apex Programming amzn.to/2X8hZb4
Clean Code amzn.to/2X8iaTM - วิทยาศาสตร์และเทคโนโลยี
Great video, this helped!
The extra tip I have here is when you want to delete a class in PRD you will have to run tests. Sometimes running all tests won't work as in bigger orgs due to tech debt, not all test classes pass. Instead of fixing all test classes, I noticed that just running a single specific test class unrelated to the class I defined in the XML for deletion, will work!
Thank you! Very helpful!!
I've been struggling to delete classes for MONTHS! I did run into separate issues in trying to do this (partly because of Mac, partly because of tests failing) but this video was hugely helpful. Thank you!
Happy to help!
Thanks you very much sir, it helped me a lot as a newbie to salesforce
Worked Like A Charm
Glad it helped! Let me know if there anything else you like to see.
Thank You this helped me to delete trigger
My pleasure. Let me know if there anything else you'd like explained.
You're a hero... :')
Glad I could help!
Great vid
Thanks! If there's any other video you would like let me know.
Thank you..
You're welcome
Great job. Are the instructions the same for MacOS?
Will this work for an Apex Class within an installed Package? I received errors when trying to uninstall a package so I am trying to remove the referenced Apex Classes.
You're an angel (T_T)
Please explain.How to delete batch apex through code in Salesforce developer console
Hi. I'm trying but I have an error message. This apex class is referenced elsewhere in salesforce.com. Remove the usage and try again. : Visualforce Page - XXXXX. I'm new on this, how can I remove the usage of this VFpage? can you help me please?
This means the code you are trying to delete is being used by something else. You'll need to remove the reference to the class to be able to delete it.
I have followed the exact steps and this is not working for me.
Hmm I may need to revisit this to make sure it's still working. I'd double check that you are selecting both files and zipping them.
@@Walters954 Yes, both are being selected.
same issue with me, @walters954 is this solution still working?
Just checked - works like a charm!
I am facing same issue even though i did same process but unable to delete