Files
cheatsheet-tldr/tldr/gradle-clean
2026-01-08 00:22:45 +00:00

26 lines
536 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gradle clean
> Delete the build directory and all generated files.
> More information: <https://docs.gradle.org/current/userguide/command_line_interface.html#cleaning_outputs>.
- Clean the build directory:
`gradle clean`
- Clean and then build the project:
`gradle clean build`
- Clean a specific subproject in a multi-project build:
`gradle :{{subproject}}:clean`
- Clean with more detailed logging:
`gradle clean {{[-i|--info]}}`