# Gradle 9 stale outputs outside build directory no longer deleted

Status: search-necessary
Product: Gradle 9 / Android Gradle Plugin 9
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/gradle-9-stale-output-outside-build-directory-is-no-longer-deleted
Machine JSON: https://gitdocs.org/api/fixes/gradle-9-stale-output-outside-build-directory-is-no-longer-deleted.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.

## Fix

```
Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- Gradle 9 stale outputs outside build directory no longer deleted
- site:docs.gradle.org Gradle 9 stale outputs outside build directory
- Gradle 9 upgrade guide stale output outside build directory
- "stale output" "outside" "build directory" "Gradle"
- Gradle 9 upgrade guide "outside the build"
- https://docs.gradle.org/current/userguide/upgrading_version_8.html
- 'stale' in https://docs.gradle.org/current/userguide/upgrading_major_version_9.html
- Android Gradle Plugin 9 stale outputs outside build directory

## Sources

- Gradle 9 upgrade guide: https://docs.gradle.org/current/userguide/upgrading_major_version_9.html
- Official reference opened by Codex: https://docs.gradle.org/current/userguide/upgrading_version_8.html
