diff --git a/src/server/pkg/collection/collection.go b/src/server/pkg/collection/collection.go
index <HASH>..<HASH> 100644
--- a/src/server/pkg/collection/collection.go
+++ b/src/server/pkg/collection/collection.go
@@ -213,6 +213,12 @@ func (c *readWriteCollection) Delete(key string) error {
 }
 
 func (c *readWriteCollection) DeleteAll() {
+	for _, index := range c.indexes {
+		// Delete indexes
+		indexDir := c.prefix
+		indexDir = strings.TrimRight(indexDir, "/")
+		c.stm.DelAll(fmt.Sprintf("%s__index_%s/", indexDir, index))
+	}
 	c.stm.DelAll(c.prefix)
 }
Delete indexes in DeleteAll