dub-clean(1)

dub-clean1

Removes intermediate build files and cached build results

Usage

dub clean [<package>] OPTIONS ...

Overview

This command removes any cached build files of the given package(s). The final target file, as well as any copyFiles are currently not removed.

Without arguments, the package in the current working directory will be cleaned.

Options

--all-packages

Cleans up *all* known packages (dub list)

Common options

See dub(1)

Exit status

0

DUB succeeded

1

usage errors, unknown command line flags

2

package not found, package failed to load, miscellaneous error

Files

dub.sdl, dub.json

Online documentation

http://code.dlang.org/docs/commandline

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

Author

Copyright (c) 1999-2026 by The D Language Foundation

From dub 1.42.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.