Delete not Persisted
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**Question**
I am trying to delete a record using box.delete but every time I reload, everything comes back.
Checking the data, it is deleted in memory, but the changes are not persisted.
**Code sample**
```
var box = await Hive.openBox(hiveBox);
await box.delete(nodeID);
await box.compact();
```
**Version**
- Platform: Mac, Windows
- Flutter version: Channel stable, 3.7.11,
- Hive version: ^2.2.3
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the box.delete and box.compact entry points shown in the report, then reproduce the behavior by deleting a key, compacting the box, and reopening it. Trace the persistence path to determine why the deletion is present in memory but absent after reload; done means the deleted record remains absent on Mac and Windows with the reported versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100