## KernelDB.deduplicate_plan()


Generate a deduplication plan without executing it.


Usage

``` python
KernelDB.deduplicate_plan()
```


For each set of identical files (same hash, several locations), one canonical copy is chosen, preferring the `generic` mission, and the rest are listed as removable. The plan respects the per-mission `dedup` setting of the `missions` table: files of a mission with deduplication disabled are never listed as removable. A mission that is not in the table defaults to `dedup=True`.


## Returns


`list[dict]`  
One dict per set of identical files that has something to remove, with the keys `filename`, `size_bytes`, `keep` (the canonical path) and `remove` (the list of removable paths).
