# Error "cannot delete file, will retry" in QuestDB log

**URL:** <https://community.questdb.com/t/error-cannot-delete-file-will-retry-in-questdb-log/31>\
**Category:** Community\
**Tags:** config, question\
**Created:** [June 26, 2024, 6:01pm UTC](https://community.questdb.com/t/error-cannot-delete-file-will-retry-in-questdb-log/31 "2024-06-26T18:01:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex004/uploads/questdb/original/1X/b6b1b349e598d0550947e63d7923a9d7df0279eb.png) [@system](https://community.questdb.com/u/system)\
**Post date:** [June 26, 2024, 6:01pm UTC](https://community.questdb.com/t/error-cannot-delete-file-will-retry-in-questdb-log/31/1 "2024-06-26T18:01:25Z")

</div>

There is an error in my log, I see it again and again:

```auto
I i.q.c.ColumnPurgeOperator cannot delete file, will retry [path=C:\QuestDB\bin\qdb\db\lolTableNOWAL\default\lolColumn.d.1438, errno=5]

```

And client says:

```auto
00000: Timeout expired on waiting for the async command execution result [instance=20]

```

After awhile the DB crashes.

What is happening?

I am running windows.

---

<div class="post-metadata">

**Author:** ![nwoolmer](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.questdb.com/nwoolmer/32/24_2.png) [@nwoolmer](https://community.questdb.com/u/nwoolmer)\
**Post date:** [June 26, 2024, 6:01pm UTC](https://community.questdb.com/t/error-cannot-delete-file-will-retry-in-questdb-log/31/2 "2024-06-26T18:01:46Z")

</div>

Found answer [in the docs](https://questdb.io/docs/troubleshooting/faq/#why-do-i-see-cannot-delete-file-will-retry-in-the-logs).

> If you are using Windows, we recommend disabling Windows Defender. Windows Defender will scan each new file that it sees. If a file is being scanned, it cannot be deleted. Therefore, QuestDB creates files, Windows Defender scans them, QuestDB goes to clean up and cannot delete the files being scanned.

After disabling Defender, it works.
