Deleting Packages
Use nubo del to remove packages from the current project.
nubo del github.com/nubolang/colorCleanup Flag
Section titled “Cleanup Flag”By default, deleting removes package metadata from the project.
Use --cleanup to also remove the cached package folder from disk when it is safe.
nubo del github.com/nubolang/color --cleanupWhat Delete Does
Section titled “What Delete Does”When deleting a package, Nubo:
- Parses the package URI.
- Finds the package in
_nubo.yaml. - Finds the lock entry in
lock.yaml. - Checks whether other packages still reference the same dependency.
- Checks nested dependency relationships.
- Removes project metadata.
- Removes lock data when safe.
- Optionally removes the cached folder if
--cleanupis used.
Safe Deletion
Section titled “Safe Deletion”Nubo avoids removing a package from the lockfile or cache if another locked package still depends on it.
If the package is still referenced, Nubo removes it only from direct project metadata.
That means _nubo.yaml can change while lock.yaml keeps the dependency because it is still needed transitively.
Recursive Dependency Cleanup
Section titled “Recursive Dependency Cleanup”If the package has its own lock.yaml, Nubo checks nested dependencies.
When safe, it recursively deletes dependencies that are no longer needed.
Cache Cleanup
Section titled “Cache Cleanup”The cached folder is only removed when --cleanup is passed.
Cache path example:
~/nubo/packages/github.com/nubolang/color@f5063d6fa53bf8be818f4316273ee81fb5474d21Without --cleanup, the cache remains on disk.
Examples
Section titled “Examples”Delete from project metadata:
nubo del github.com/nubolang/colorDelete and remove cache when safe:
nubo del github.com/nubolang/color --cleanupDelete multiple packages through the CLI:
nubo del github.com/nubolang/color github.com/example/other