Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

cargo-clean (1)

Name

cargo-clean - Remove generated artifacts

Synopsis

cargo clean [OPTIONS]

Description

CARGO-CLEAN(1)                   Cargo Manual                   CARGO-CLEAN(1)



NAME
       cargo-clean - Remove generated artifacts

SYNOPSIS
       cargo clean [OPTIONS]

DESCRIPTION
       Remove artifacts that cargo has generated in the past.

       If  the --package argument is given, then SPEC is a package id specifi-
       cation which indicates which package should be built.   If  it  is  not
       given, then the current package is built.  For more information on SPEC
       and its format, see the "cargo help pkgid" command.

OPTIONS
       -h, --help
              Print this message.

       -p SPEC, --package SPEC ...
              Package to clean artifacts for.

       --manifest-path PATH
              Path to the manifest to the package to clean.

       --target TRIPLE
              Target triple to clean output for (default all).

       --release
              Whether or not to clean release artifacts.

       -v, --verbose
              Use verbose output.

       -q, --quiet
              No output printed to stdout.

       --color WHEN
              Coloring: auto, always, never.

EXAMPLES
       Remove local package generated artifacts

              $ cargo clean

       Clean release artifacts

              $ cargo clean --release


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE    |
       +---------------+----------------------+
       |Availability   | developer/rust/cargo |
       +---------------+----------------------+
       |Stability      | Volatile             |
       +---------------+----------------------+
SEE ALSO
       cargo(1), cargo-build(1)

COPYRIGHT
       This work is dual-licensed under Apache 2.0 and MIT terms.   See  COPY-
       RIGHT file in the cargo source distribution.



NOTES
       This software was built from source available at https://github.com/or-
       acle/solaris-userland.  The original community  source  was  downloaded
       from  https://static.rust-lang.org/dist/rustc-1.28.0-src.tar.xz

       Further information about this software can be found on the open source
       community website at http://www.rust-lang.org/.



The Rust package manager           May 2016                     CARGO-CLEAN(1)