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
Takashi Koyama 14Takashi Koyama 14 

Dereference an Object from trigger

I want to delete the Error_Log__c in production.  However, my "deactivated" trigger still has a handle as follows,

trigger UpdateErrorLog on Error_Log__c (before insert) {...}

Again the above trigger was deactivated thru change set but I cannot delete the Error_Log__C.  I submitted a case to Salesforce and directed me to here.   How can I dereference Error_Log__c from UpdateErrorLog trigger?
Greg HGreg H
You need to delete the trigger. One option is to Use Ant https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/daas_destructive_changes.htm.
-greg
Team NubesEliteTeam NubesElite
Hi Takashi Koyama,
If you want to stop firing trigger in your org just comment your trigger codes inside this
/* your code */


Thank You
www.nubeselite.com

Developement | Training | Consulting

Please mark this as solution if your problem resolved.



 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Takashi,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://www.salesforceben.com/way-to-delete-apex-classes-from-production/

https://jayakrishnasfdc.wordpress.com/2018/09/02/how-to-deactivate-delete-apex-class-triggers-in-production/

https://www.greytrix.com/blogs/salesforce/2014/11/29/delete-apex-class-or-trigger-in-salesforce-production-org/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Takashi Koyama 14Takashi Koyama 14
Thanks for the links.  However, I've already tried all these that you guys showed me yesterday and none worked.  If you find a way to absolutely dereference a trigger from the object, please let me know.

Thanks again.