If the Petitioner withdraws the I-130 Petition, then the I-485 will be denied. If you are the Petitioner, you can only withdraw the I-130; you cannot "cancel" the I-485 because that was filed by the Beneficiary.
The information provided is given for general purposes only. It is not meant to provide any specific guidance or give any legal advice. It is recommended that you bring your specific situation to a licensed attorney for a more complete and thorough evaluation.