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.