Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for conan remove *#!latest #3144

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion reference/commands/remove.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ conan remove

The ``conan remove`` command removes recipes and packages from the local cache or from a
specified remote. Depending on the patterns specified as argument, it is possible to
remove a complete package, or just remove the binaries, leaving still the recipe available.
remove a complete package, or just remove the binaries, leaving still the recipe
available. You can also use the keyword ``!latest`` in the revision part of the pattern to
avoid removing the latest recipe or package revision of a certain Conan package.

To remove recipes and their associated package binaries from the local cache:

Expand All @@ -56,6 +58,10 @@ To remove recipes and their associated package binaries from the local cache:
# Remove zlib/1.2.11, only its latest recipe revision and binaries of that revision
# Leave the other zlib/1.2.11 revisions intact

$ conan remove zlib/1.2.11#!latest
# Remove all the recipe revisions from zlib/1.2.11 but the latest one
# Leave the latest zlib/1.2.11 revision intact

$ conan remove zlib/1.2.11#<revision>
# Remove zlib/1.2.11, only its exact <revision> and binaries of that revision
# Leave the other zlib/1.2.11 revisions intact
Expand All @@ -75,6 +81,9 @@ pattern including the ``:`` separator of the ``package_id``:
$ conan remove zlib/1.2.11#latest:*
# Removes all the zlib/1.2.11 package binaries only from the latest zlib/1.2.11 recipe revision

$ conan remove zlib/1.2.11#!latest:*
# Removes all the zlib/1.2.11 package binaries from all the recipe revisions but the latest one

$ conan remove zlib/1.2.11:<package_id>
# Removes the package binary <package_id> from all the zlib/1.2.11 recipe revisions

Expand Down