Skip to main content
How to update the field NUMBER OF DELETE ATTEMPTED on account, when a user tried to delete the account it should throw an error saying you can't delete it.
12 answers
  1. Feb 28, 2020, 11:57 PM
    Prema, If you are asking how to delete without throwing the error follow the below steps,

    You cannot delete any field that has been used somewhere. Firstly you have to remove all the references to that field and then delete it. 

    To see, where the field is used, click on delete it will take you to the page, as you have in the image attached. 

    Click on Apex class and then edit that class, remove all the reference to that field and delete it. 

    Let me know if you need any further help.

    Regards,

    Salesforce Support.