# std.windows: use posix semantics to delete files, if available · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0f0f005e927be5e9d813e40c8c6c6580fd4f5697)

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

Visibility: public

Requested revision: 0f0f005e927be5e9d813e40c8c6c6580fd4f5697

Requested commit: 0f0f005e927be5e9d813e40c8c6c6580fd4f5697

Commit: 0f0f005e927be5e9d813e40c8c6c6580fd4f5697

Tree: 5152fa20a8da97f29c0a3e73a4802f5ac53c19cd

Author: Martin Wickham

Committer: Jan Philipp Hafer

## Message

```
std.windows: use posix semantics to delete files, if available

Justification: When a file is deleted on Windows, it may not be
immediately removed from the directory. This can cause problems
with future scans of that directory, which will see the partially
deleted file. Under some workloads and system configurations,
Windows files may appear to be deleted immediately.

This is the PR with requested fixup. Thanks to @SpexGuy for the
original PR.

```

## Parents

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

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