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

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


But how can I dynamically delete all unwanted snapshots?

If there any snapshots status that I can refer to?