diff --git a/weed/storage/needle_map_leveldb.go b/weed/storage/needle_map_leveldb.go index bd2c7c886..78dffaf7d 100644 --- a/weed/storage/needle_map_leveldb.go +++ b/weed/storage/needle_map_leveldb.go @@ -131,5 +131,5 @@ func (m *LevelDbNeedleMap) Close() { func (m *LevelDbNeedleMap) Destroy() error { m.Close() os.Remove(m.indexFile.Name()) - return os.Remove(m.dbFileName) + return os.RemoveAll(m.dbFileName) }