Yes, there is a provision for withdrawal of prosecution cases in the Criminal Procedure Code (CrPC) under Section 321, which has now been replaced by Section 360 in the new Bharatiya Nagarik Suraksha Sanhita (BNSS), 2023.