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 IDE,

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

​ ( can also try Ant tool to delete components,
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.