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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 27

  • @balintnagy6744
    @balintnagy6744 8 หลายเดือนก่อน +1

    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!

  • @volopash4482
    @volopash4482 2 หลายเดือนก่อน

    Thank you! Very helpful!!

  • @denisea5249
    @denisea5249 3 ปีที่แล้ว +1

    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!

  • @charithlankathilake8894
    @charithlankathilake8894 9 หลายเดือนก่อน

    Thanks you very much sir, it helped me a lot as a newbie to salesforce

  • @MrPrentissDJones
    @MrPrentissDJones 3 ปีที่แล้ว +2

    Worked Like A Charm

    • @Walters954
      @Walters954  3 ปีที่แล้ว

      Glad it helped! Let me know if there anything else you like to see.

  • @sudhiroracle
    @sudhiroracle 3 ปีที่แล้ว +1

    Thank You this helped me to delete trigger

    • @Walters954
      @Walters954  3 ปีที่แล้ว

      My pleasure. Let me know if there anything else you'd like explained.

  • @DominicVario
    @DominicVario 4 ปีที่แล้ว +2

    You're a hero... :')

    • @Walters954
      @Walters954  4 ปีที่แล้ว

      Glad I could help!

  • @ryanmcgrath7069
    @ryanmcgrath7069 4 ปีที่แล้ว +2

    Great vid

    • @Walters954
      @Walters954  4 ปีที่แล้ว

      Thanks! If there's any other video you would like let me know.

  • @kushalbagadia4755
    @kushalbagadia4755 4 ปีที่แล้ว +1

    Thank you..

    • @Walters954
      @Walters954  4 ปีที่แล้ว +1

      You're welcome

  • @uscnick909
    @uscnick909 3 ปีที่แล้ว

    Great job. Are the instructions the same for MacOS?

  • @spencerb9539
    @spencerb9539 3 ปีที่แล้ว

    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.

  • @Abhik5Sapphire
    @Abhik5Sapphire 3 ปีที่แล้ว +1

    You're an angel (T_T)

  • @Learnwithbhavna
    @Learnwithbhavna 2 ปีที่แล้ว

    Please explain.How to delete batch apex through code in Salesforce developer console

  • @ivanperez8335
    @ivanperez8335 3 ปีที่แล้ว +1

    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?

    • @Walters954
      @Walters954  3 ปีที่แล้ว

      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.

  • @lamar9648
    @lamar9648 4 ปีที่แล้ว +1

    I have followed the exact steps and this is not working for me.

    • @Walters954
      @Walters954  4 ปีที่แล้ว +1

      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.

    • @lamar9648
      @lamar9648 4 ปีที่แล้ว

      @@Walters954 Yes, both are being selected.

    • @ajaysharma-xo3nr
      @ajaysharma-xo3nr 4 ปีที่แล้ว

      same issue with me, @walters954 is this solution still working?

    • @andriimuzychuk711
      @andriimuzychuk711 3 ปีที่แล้ว

      Just checked - works like a charm!

    • @mdsamirahmad8330
      @mdsamirahmad8330 2 ปีที่แล้ว

      I am facing same issue even though i did same process but unable to delete