# How to define a step to effectively delete the zig-cache directory?

**URL:** <https://ziggit.dev/t/how-to-define-a-step-to-effectively-delete-the-zig-cache-directory/4279>\
**Category:** Help\
**Tags:** build-system\
**Created:** [May 11, 2024, 4:20pm UTC](https://ziggit.dev/t/how-to-define-a-step-to-effectively-delete-the-zig-cache-directory/4279 "2024-05-11T16:20:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dimdin](https://ziggit.dev/user_avatar/ziggit.dev/dimdin/32/1457_2.png) [@dimdin](https://ziggit.dev/u/dimdin)\
**Post date:** [May 11, 2024, 4:27pm UTC](https://ziggit.dev/t/how-to-define-a-step-to-effectively-delete-the-zig-cache-directory/4279/2 "2024-05-11T16:27:23Z")

</div>

Builder is an executable in the zig-cache.  
Deleting the zig-cache contents, includes the running builder executable.  
In Windows you cannot delete a running executable.

See also: [8) Clean `zig-out` and `zig-cache` directories](https://ziggit.dev/t/build-system-tricks/3531#h-8-clean-zig-out-and-zig-cache-directories-17)

---

_[View the full topic](https://ziggit.dev/t/how-to-define-a-step-to-effectively-delete-the-zig-cache-directory/4279)._
