DUB-CLEAN(1)

🧼 DUB-CLEAN(1) β€” the dub clean girlies' manual page πŸ’…

okay so bestie, this is the manual page for dub-clean from The D Language Foundation, and I'm gonna walk you through it like we're texting at 1am 🫢


✨ NAME ✨

dub-clean β€” removes intermediate build files and cached build results. literally that's it, it's the cleanup crew 🧹


✨ SYNOPSIS ✨

dub clean [<package>] OPTIONS...

🌸 DESCRIPTION 🌸

so this command removes any cached build files of the given package(s). that's the whole vibe πŸ’–

but β€” and this is the important part, don't skip it β€” the final target file, as well as any copyFiles, are currently not removed. so don't come crying to me when your binary is still sitting there, it's giving "I'm still here" energy 😭

Without arguments, the package in the current working directory will be cleaned. no thoughts, just clean the one you're standing in πŸŽ€


✨ OPTIONS ✨

  • --all-packages β€” cleans up all known packages (as in, the ones from dub list). go big or go home, queen πŸ‘‘

πŸ’œ COMMON OPTIONS

See dub(1) β€” the main character of the dub manpages, she has all the shared options iykyk


πŸ”₯ EXIT STATUS πŸ”₯

like the vibe check at the end, here's what the exit codes mean:

  • 0 β€” DUB succeeded. slay, we ate πŸ’…
  • 1 β€” usage errors, unknown command line flags. you typed something weird bestie πŸ™ˆ
  • 2 β€” package not found, package failed to load, miscellaneous error. it's giving chaos πŸ’€

πŸŽ€ FILES πŸŽ€

  • dub.sdl
  • dub.json

those are the two files, iconic duo fr fr


πŸ‘‘ AUTHOR πŸ‘‘

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


🌈 ONLINE DOCUMENTATION 🌈

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

go read it, it's free ✨


πŸ¦‹ SEE ALSO πŸ¦‹


okay that's the whole page, you're welcome πŸ’– this was brought to you by The D Language Foundation, dated 2026-08-16 β€” mwah, stay clean bestie 🧚⭐

πŸ“¦ where this page comes from