They are two separate applications that go together. Only a sponsor can withdraw an Application to Sponsor and only the applicant can withdraw the Application for Permanent Residency. However, if the sponsor withdraws his/her application to sponsor someone in the family class, then the applicant is no longer eligible because they are no longer supported by their sponsor so their application for permanent residency will be refused or file closed, etc. as they are not considered members of the family class.