function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David OvellaDavid Ovella 

How to delete apex class from production

I created apex class in the developer, then deploy to production. But it didn't work and i think is because has @istest on the code, i don't know. And now that is on the production, i don't know how to delete. I'm new is this.
This is my apex class

@isTest
public with sharing class SenasPDFController {
    private final Senas__c sna;
    public cSena csna{get; set;}
    public Integer total{get; set;}

    public SenasPDFController(ApexPages.StandardController controller){
        this.sna= [Select Id, Total_Sena__c From Senas__c Where Id= :controller.getId()];
        this.csna = new cSena(this.sna);
        total= Integer.valueOf(this.sna.Total_Sena__c);
   
    }    
   
    public String getNumberToWords(){
        return NumberToSpanishWords.toSpanishWords(total);
    }
    
    public class cSena{
        public Senas__c sna {get; set;}
        public string Total_Sena{get; set;}
        
        public cSena(Senas__c s){
        this.sna=s;
        this.Total_Sena=NumberToSpanishWords.convertToEU(s.Total_Sena__c);
        }
    }
    
}
Satya55Satya55
HI David,
You can delete using Eclips or Force.com IDE with doing some modification in XML file..
Please follow this link you can find the solution
https://help.salesforce.com/apex/HTViewSolution?id=000006188&language=en_US

Thanks,
Satya