clean remove all left over files when deleting a collection

This commit is contained in:
Chris Lu 2018-08-23 23:33:16 -07:00
parent d361a1ddf5
commit ac793a3c5a

View file

@ -46,6 +46,10 @@ func (v *Volume) Destroy() (err error) {
return
}
err = v.nm.Destroy()
os.Remove(v.FileName() + ".cpd")
os.Remove(v.FileName() + ".cpx")
os.Remove(v.FileName() + ".ldb")
os.Remove(v.FileName() + ".bdb")
return
}