Dub.remove

Removes one or more versions of a locally cached package.

This will remove a given package with a specified version from the given location. It will remove at most one package, unless version_ is set to RemoveVersionWildcard.

  1. void remove(Package pack, bool force_remove)
  2. void remove(string package_id, PlacementLocation location, bool force_remove, size_t delegate(in Package[] packages) resolve_version)
    class Dub
    void
    remove
  3. void remove(string package_id, string version_, PlacementLocation location, bool force_remove)

Parameters

package_id string

Name of the package to be removed

force_remove bool

Forces removal of the package, even if untracked files are found in its folder.

resolve_version size_t delegate

Callback to select package version.

Meta