Ionic deploy: how can I delete the inactive-snapshot?


#1

I know I can get all the snapshot by

this.deploy.getSnapshots().then((snapshots) => {
  // snapshots will be an array of snapshot uuids
});

And deleted by

this.deploy.deleteSnapshot('366f119a-4d3b-46fd-b1be-1def98812344');

But how can I dynamically delete all unwanted snapshots?

If there any snapshots status that I can refer to?

Thanks!