# ci: Fix \`script/clear-target-dir-if-larger-than\` post \#41652 \(\#42640\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b900ac2ac7ca36636d0a2476c308d127bf0344b8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b900ac2ac7ca36636d0a2476c308d127bf0344b8

Requested commit: b900ac2ac7ca36636d0a2476c308d127bf0344b8

Commit: b900ac2ac7ca36636d0a2476c308d127bf0344b8

Tree: 4128a66f425ed5c38050a1ecde87c7177bde8797

Author: Ben Kunkle

Committer: GitHub

## Message

```
ci: Fix `script/clear-target-dir-if-larger-than` post #41652 (#42640)

Closes #ISSUE

The namespace runners mount the `target` directory to the cache drive,
so `rm -rf target` would fail with `Device Busy`. Instead we now do `rm
-rf target/* target/.*` to remove all files (including hidden files)
from the `target` directory, without removing the target directory
itself

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

- [b709996ec6e57d7593f409fe519695df7d5e2608](https://git.cafe/gitcafe/zed/commit/b709996ec6e57d7593f409fe519695df7d5e2608?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b900ac2ac7ca36636d0a2476c308d127bf0344b8?format=markdown)
