When a key is deleted in a for loop, calling cursor.next() jumps a key. As a result we must seek to the prefix again, until all keys with the prefix are deleted.
When a key is deleted in a for loop, calling cursor.next() jumps a key. As a result we must seek to the prefix again, until all keys with the prefix are deleted.