purge “inactive” slots, where an “inactive” slot is one loaded into the project’s slot list but not used in any of the project’s banks.
does not remove any sample files (use on device PURGE SAMPLES operation for that)
ot-tools-cli-slots-purge.exe (8.0 MB)
built for x86_64-pc-windows-gnu so should work in powershell / cmd.exe
usage (for static slots)
.\ot-tools-cli-slots-purge.exe .\path\to\project\ static
example running for static slots
[2026-07-06T18:56:38Z INFO ] -
[2026-07-06T18:56:38Z INFO ] Purging unused project slots (sample files will not be removed)
[2026-07-06T18:56:38Z INFO ] -
[2026-07-06T18:56:38Z INFO ] Project: "./tmp/aaa/"
[2026-07-06T18:56:38Z INFO ] Slot type: Static
[2026-07-06T18:56:38Z INFO ] -
[2026-07-06T18:56:38Z DEBUG] Reading project data ...
[2026-07-06T18:56:38Z DEBUG] Found 17 Static slots referenced in banks.
[2026-07-06T18:56:38Z DEBUG] 32 Static slots loaded in project slots list.
[2026-07-06T18:56:38Z DEBUG] Planning purge of inactive slots ...
[2026-07-06T18:56:38Z DEBUG] Will purge 15 inactive Static slots.
[2026-07-06T18:56:38Z DEBUG] Preparing file system changes ...
[2026-07-06T18:56:39Z DEBUG] Applied file system changes
[2026-07-06T18:56:39Z INFO ] Purged 15 Static slots, removing the following slot IDs: [9, 10, 11, 12, 14, 15, 17, 18, 19, 20, 23, 27, 124, 125, 126]
also… another one for just listing active/inactive slot IDs in a project
ot-tools-cli-slots-usages.exe (8.0 MB)
not thoroughly tested these yet. they run on a project i’m pretty sure has unused slots in it. test them on a copy of your projects first, inspect the changes, take backups, not my fault if you lose an entire project / CF card, yada yada yada