Creating a class and deploying it from a sandbox environment to the production environment has been simple:
- Under "Custom code > Apex classes", create a class and test.
- Create a change set in sandbox.
- Deploy the change set in production.
If I delete a class in the sandbox environment, it doesn't show up when I go to create a change set, so it's not possible to delete the class from production. I'm a complete beginner to Salesforce and I hear things like "ANT" or "Workbench" for doing this, but I really have no idea how these things work. I'm not looking to do anything complicated, just create a "delete class" change set.
Another post I saw suggested commenting out the entire class and then creating a change set for that, but I tried to do that and I get an error instead:
Error: Compile Error: Unexpected token '<EOF>'. at line 44 column 1
How do I delete a class with a change set?