diff --git a/accounts/pkg/indexer/index/disk/autoincrement.go b/accounts/pkg/indexer/index/disk/autoincrement.go index 279b5edb8..d68665230 100644 --- a/accounts/pkg/indexer/index/disk/autoincrement.go +++ b/accounts/pkg/indexer/index/disk/autoincrement.go @@ -263,5 +263,5 @@ func (idx *Autoincrement) next() (int, error) { // Delete deletes the index folder from its storage. func (idx *Autoincrement) Delete() error { - return nil + return os.Remove(idx.indexRootDir) } diff --git a/accounts/pkg/indexer/index/disk/helper.go b/accounts/pkg/indexer/index/disk/helper.go new file mode 100644 index 000000000..8be362d5f --- /dev/null +++ b/accounts/pkg/indexer/index/disk/helper.go @@ -0,0 +1 @@ +package disk diff --git a/accounts/pkg/indexer/index/disk/non_unique.go b/accounts/pkg/indexer/index/disk/non_unique.go index b4df3db5b..3dfa6bc18 100644 --- a/accounts/pkg/indexer/index/disk/non_unique.go +++ b/accounts/pkg/indexer/index/disk/non_unique.go @@ -236,5 +236,5 @@ func (idx *NonUnique) FilesDir() string { // Delete deletes the index folder from its storage. func (idx *NonUnique) Delete() error { - return nil + return os.Remove(idx.indexRootDir) } diff --git a/accounts/pkg/indexer/index/disk/unique.go b/accounts/pkg/indexer/index/disk/unique.go index 6a5374469..751fd73de 100644 --- a/accounts/pkg/indexer/index/disk/unique.go +++ b/accounts/pkg/indexer/index/disk/unique.go @@ -223,5 +223,5 @@ func isValidSymlink(path string) (err error) { // Delete deletes the index folder from its storage. func (idx *Unique) Delete() error { - return nil + return os.Remove(idx.indexRootDir) }