API Reference
lean library remove
Description
Removes a library from a project.
This command can remove libraries that are added using lean library add
, as well as libraries that were manually added to the C# project file or a Python project's requirements.txt file.
C# libraries are removed from your C# project file (the file ending in .csproj).
If dotnet
is on your PATH
and --no-local
is not given, the CLI also restores all dependencies using dotnet restore
.
Third-party Python libraries are removed from your project's requirements.txt file.
Project libraries are removed from your project configuration file.
Arguments
The lean library remove
command expects the following arguments:
Argument | Description |
---|---|
<project> | The path to the project directory. |
<name> | For third-party C# libraries, the name of the NuGet package to remove. For third-party Python libraries, the name of the PyPI package to remove. For project libraries, the path to the library in the Library directory of your organization workspace. |