Reverting live updated app back to store version

We’ve updated our Live Deploy integration from v4 to v5 API:

  • before: cordova-plugin-ionic@4.1.7, @ionic/pro@1.0.20, cordova-plugin-ionic-webview@1.1.16
  • after: cordova-plugin-ionic@5.3.0, @ionic/pro@2.0.4, cordova-plugin-ionic-webview@2.4.1

Our own update dialog is implemented with UPDATE_METHOD=none. WIth v4, we had a button to reset deployed version to originally shipped (deletes every update) for debugging purpose, but struggling to implement it with v5. Anyone know how we can achieve such functionality with v5 API? Any help would be greatly appreciated.

With v4, our reset feature does following:

  1. for each version in getVersions(), run deleteVersion(version)
  2. window.location.reload()