Support deleting multiple containers at once (possibly all) #558

Closed
castrojo opened this Issue Apr 29, 2015 · 6 comments

Comments

Projects
None yet
6 participants

It'd be nice to just clean up all the containers on a machine with something like lxc delete * or lxc delete -a (or something similar.)

I think it'd be better instead to just allow multiple container names in the delete line

lxc delete host:c1 c2 c5 that way the action is more explicit to avoid accidental deletions.

basak commented Apr 29, 2015

FTR, uvt-kvm currently does what Marco says, which also means that uvt-kvm list|xargs uvt-kvm destroy works. It doesn't currently support * or -a but I'm not too opposed to that. I favour -a since the * would need escaping and \* is more awkward than -a.

Owner

stgraber commented Apr 29, 2015

Supporting multiple container names would be fine with me, we may want to consider what other command would benefit from a similar behavior (for consistency).

@stgraber stgraber changed the title from Support removing all containers with the `delete` subcommand to Support deleting multiple containers at once (possibly all) Apr 29, 2015

@stgraber stgraber added the Feature label Apr 29, 2015

@stgraber stgraber added this to the later milestone Apr 29, 2015

jpgxs commented Jun 25, 2015

I think that this would be best for delete, start, stop and restart

@stgraber stgraber closed this Jul 7, 2015

@stgraber stgraber modified the milestones: later, lxd-0.16 Aug 16, 2015

when issueing the command sudo lxc delete * i just get an "error: not found"

though, any name i give it, even if its a legic lxd container, says its not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment