Activity Forums Salesforce® Discussions Can we directly delete Apex Class from in Salesforce ?

  • Shweta

    Member
    September 15, 2020 at 2:27 pm

    Apex classes cannot be deleted from a Salesforce production declaratively, unlike in sandbox org. This is because security for Apex in Salesforce production org is greatly increased. An Apex Class must be removed from a production instance if it's blocking a deployment or is no longer needed. Since Apex code can't be modified directly within a Production organization, it requires steps using Developer tools, like ANT Migration Tool.

  • Marziya

    Member
    September 15, 2020 at 2:44 pm

    No ,We can't.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos