by adom
Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.
Add altium_uninstall_library (inverse of install_library); no way to remove an installed library today
Ask
Add altium_uninstall_library {libraryPath | libraryName}, the inverse of altium_install_library / altium_install_library_bundle. Today a library can be installed but not removed, so the only ways out are clicking through Components › File-based Libraries Preferences or hand-running DelphiScript through altium_eval.
Why it came up
Preparing a from-scratch demo on ConfRoomROG (Altium Designer Develop, bridge 0.2.40): an earlier run had installed Adom_ToF (SchLib + PcbLib) and it had to go so the new run would build its library fresh rather than reuse it on camera. There was no verb, and deleting the files is worse: the contract says so itself (altium_install_library pitfall: "moving or deleting it later leaves a dead entry").
Suggested contract
- input:
libraryPath(exact registered path) orlibraryName(matches every installed library whose file stem equals it, i.e. bothX.SchLibandX.PcbLib),dryRunbool. - output:
removed: [path],remaining: int,notInstalled: bool. - implementation:
IntegratedLibraryManager.UninstallLibrary(path)after matching againstInstalledLibraryPath(i)fori < InstalledLibraryCount. Library files are never touched. - behaviour: background like
install_library(no foreground steal, see #12). AnswernotInstalled:truerather than failing when nothing matches, so a cleanup script can call it twice without erroring. - companion:
altium_list_installed_libraries(read-only) so a caller can check before and after without a screenshot.
Also worth covering
altium_install_library_bundle receipts could record the registered paths, so an uninstall can remove exactly what a bundle added.