Sandbox — LSD is in active testing. All systems operational·payments are test-mode (no real charges).
Overview Use Cases News Docs Tool Store Support Community Get LSD
All docs
PackageManager· method

PackageManager.remove

uninstall a package by name

Python
remove(name: str) -> bool

Returns bool — True if the package was found and removed

Parameters#

name type default description
name str the package name as it appears in the installed record

Example#

Python
from lsdtools.advanced import PackageManager

pm = PackageManager()
pm.remove("my-pkg")   # → True

Notes#

Removes the package from the installed record and, as a safety measure, deletes its directory only when that directory sits inside the global ~/.lsd/packages/ dir — a by-reference add_local folder outside it is de-registered but never deleted. Returns False if name is not in the installed record. Before removing, check what depends on it with dependents_of.

See also#

API: install · dependents_of · installed

Guides: The Package Manager · Dependencies

By LSD Team · Last updated Jul 17, 2026 Ask on Discord View as Markdown