fastmonkeys / stellar

Fast database snapshot and restore tool for development
MIT License
3.86k stars 119 forks source link

Mass delete snapshots for a project #60

Open vendion opened 7 years ago

vendion commented 7 years ago

Given a project that has multiple snapshots created by stellar and I want to drop (remove) all snapshots for a given project is there a faster way to do it than calling stellar remove for each snapshot? If not maybe introduce a stellar purge that removes all snapshots for a project.

quantus commented 7 years ago

Sorry to respond so late, I've been busy with other things.

I thing purge command seems reasonable. If someone creates a PR about this, I can check it.

Teemu commented 7 years ago

Meanwhile, stellar list | cut -d ":" -f 1 | xargs -L 1 stellar remove