How about simply waiting 5s straight away?
```
Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
if (!file.delete()) {
  throw new IOException("Could not delete: " + file);
}
```
But also fine as is ;-)