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
Rajeesh vrRajeesh vr 

Apex test class compile error: Variable does not exist

I have created a POST REST API with class name as given below. 
global with sharing class RestReceiveBid {
  global static ReturnClass doPost(id invoiceId, id userId, double amount, boolean acceptPartialBid, id contactId) {
}
}
And I have created test class with following name.
private class Test_RestReceiveBid {
 static testMethod void testDoPost() {
   RestReceiveBid.doPost(invoiceID, funderID, amount, acceptPartialBid, contactID); >> line 48
}
}
I didn't get any error while running this test class and I have deployed the same to production as well. But after some time we have decided to delete the old classes and i am trying to delete class from eclipse IDE. But when I am trying to deploy the class I amgetting the following error for the test clas. 

Test_RestReceiveBid. line 48, column 5: Variable does not exist: RestReceiveBid.

Can anyone please point out what I am missing here? Also help on how we can delete the old Apex classes from production will be appreciated. 
 
Arunkumar RArunkumar R
Hi Rajeesh,

Please read the below salesforce help documentation carefully and try again to delete a class from Force.com IDE,

https://help.salesforce.com/articleView?id=000006188&type=1

Make sure Open the matching .xml file, and change the Status XML tag from Active to Deleted. 

​ (https://help.salesforce.com/articleView?id=000006188&type=1)You can also try Ant tool to delete components,

https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/daas_destructive_changes.htm
Rajeesh vrRajeesh vr
I am following the same method. But I am getting the above error while trying to deploy the class and xml files to the production env.