DUB-REMOVE(1)

πŸ’… dub-remove(1) β€” the D Language Foundation's own lil' cache-cleaning queen πŸŽ€

okay so bestie, real talk: you're looking at dub-remove(1), one of the many iconic pages from The D Language Foundation, and honestly? She's a short one. Sweet. To the point. A little dramatic removal moment. Let's get into it ✨


🌸 NAME 🌸

dub-remove β€” she removes a cached package. that's it. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

dub remove <package>[@<version-spec>] OPTIONS...

literally just point her at a package, optionally tell her which version you mean with a version spec, and vibe-check it out of existence 😭


πŸ’– DESCRIPTION πŸ’–

Removes a package that is cached on the local system.

no cap, that's the entire description. she's not gonna over-explain herself. the package is sitting there in your local cache, and now it's not. main character energy, honestly πŸ‘‘


✨ OPTIONS ✨

  • --version=VALUE β€” use the specified version/branch instead of the latest available match. and here's the fun part bestie: the remove command also accepts * here as a wildcard so you can nuke all versions of the package from the specified location πŸ”₯ (yes, that means all of them. yes, that's the point.)
  • --force-remove β€” deprecated option that does nothing. respectfully, she's a ghost πŸ‘» she does nothing. kept around for legacy reasons, not for you to rely on, fr fr.
  • -n, --non-interactive β€” don't enter interactive mode. she just goes and does the thing without asking you follow-up questions 🫢

🧚 COMMON OPTIONS

see dub(1) β€” the big sis page has all the shared stuff πŸ’œ


πŸ’€ EXIT STATUS πŸ’€

  • 0 β€” DUB succeeded πŸŽ‰ slay, she ate
  • 1 β€” usage errors, unknown command line flags πŸ™ˆ (you typed something weird)
  • 2 β€” package not found, package failed to load, miscellaneous error 😭 (she looked. it wasn't there. or something else went sideways.)

πŸ“ FILES πŸ“

  • dub.sdl
  • dub.json

the two iconic recipe files. iykyk 🌈


πŸ‘‘ AUTHOR πŸ‘‘

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


⭐ ONLINE DOCUMENTATION ⭐

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

(yes that's the docs. go read them. obsessive behaviour encouraged πŸ’–)


🌸 SEE ALSO 🌸


heads up bestie: --force-remove is deprecated and does nothing. don't build your whole workflow on it, okay? πŸ™ˆ

and that's the page!! πŸŽ€ brought to you by The D Language Foundation, dated 2026-08-16 β€” go forth and remove things, bestie, you've got this πŸ’…βœ¨

πŸ“¦ where this page comes from