I want to update a managed package to the current version.
The problem is that in the later version I've removed some VF pages as well as the controllers for these pages. It turned out that the deleted pages REMAIN in the org as a deprecated page (makes sense), AND they need a controller. So I've getting the following error on package update:
Salesforce has blocked this package upgrade because the new package version removes some Apex code that one or more Visualforce pages or global Visualforce components need in order to function. Please contact your partner with this error information. Provide these component names to your partner. Visualforce Pages: PaymentGateway_SyncCoupons, Stripe_Setup, PaymentGateway_SyncSubscriptions, PaymentGateway_SyncPlans, PaymentGateway_SyncInvoices.
How to fix this? I think I can't recreate these controllers in the package (with the same names) as they are already deleted.