# Transforms cache problems "Could not read workspace metadata"

The practical recovery for the corrupted-cache failures: delete the bad cache files and their directories, stop and restart the Gradle daemons, and make sure your CI cleanup actually deletes directories (in Jenkins, pre-build cleanup must use `deleteDirectories(true)`; plain file deletes are not enough). No version-specific fix was confirmed in the thread; the bug persisted across many Gradle releases, and GitHub later closed it via PR #36227. If it recurs in CI, the cleanup step above is what keeps builds green.

## Context from the issue
gh:gradle/gradle#28974: Issue gradle/gradle#28974 (closed, 45 comments): ### Current Behavior On our Jenkins agents running on Windows we're having trouble with corrupted build cache entries. Every couple of builds agents start to complain about missing "metadata.bin" files in the build cache. Looking at the cache directory the files are indeed missing, there is just a subdirectory "**transformed/instrumented**" containing a Jar. Subsequent builds will fail once this error shows up. The only solution is to delete the cache directory. Then it works for a while until the error shows up again. So far we have only seen this issue on our Windows agents.