From acae8fc2f9740f2dc100195f8b5f3d8d859e09cb Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Sun, 7 Aug 2016 03:47:52 +0000 Subject: [PATCH] [lxd] implement artifact detroy --- builder/lxd/artifact.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builder/lxd/artifact.go b/builder/lxd/artifact.go index e91fa4070..481f0758e 100644 --- a/builder/lxd/artifact.go +++ b/builder/lxd/artifact.go @@ -29,7 +29,6 @@ func (a *Artifact) State(name string) interface{} { } func (a *Artifact) Destroy() error { - //return os.RemoveAll(a.dir) - //TODO - return nil + _, err := LXDCommand("image", "delete", a.id) + return err }