# Modern Windows O.S. Inquiry About Deleting A File

**URL:** <https://boards.straightdope.com/t/modern-windows-o-s-inquiry-about-deleting-a-file/952043>\
**Category:** Factual Questions\
**Created:** [October 7, 2021, 1:52am UTC](https://boards.straightdope.com/t/modern-windows-o-s-inquiry-about-deleting-a-file/952043 "2021-10-07T01:52:10Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![ASGuy](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ASGuy](https://boards.straightdope.com/u/ASGuy)\
**Post date:** [October 8, 2021, 1:21am UTC](https://boards.straightdope.com/t/modern-windows-o-s-inquiry-about-deleting-a-file/952043/21 "2021-10-08T01:21:09Z")

</div>

Chronos I accept what you are saying but the Mac O.S. is probably working differently that Windows.

---

<div class="post-metadata">

**Author:** ![ASGuy](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ASGuy](https://boards.straightdope.com/u/ASGuy)\
**Post date:** [October 8, 2021, 1:26am UTC](https://boards.straightdope.com/t/modern-windows-o-s-inquiry-about-deleting-a-file/952043/22 "2021-10-08T01:26:26Z")

</div>

> [@echoreply](#):
>
> Modern file systems can do tail packing, where multiple small files, or the “tails” of larger files, are saved together in a single cluster to avoid this problem.

I will accept this. But is Windows a “modern” file system? Perhaps, but I don’t think it does this.

---

<div class="post-metadata">

**Author:** ![md-2000](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@md-2000](https://boards.straightdope.com/u/md-2000)\
**Post date:** [October 8, 2021, 1:45pm UTC](https://boards.straightdope.com/t/modern-windows-o-s-inquiry-about-deleting-a-file/952043/23 "2021-10-08T13:45:28Z")

</div>

> [@Chronos](#):
>
> Is this true? I often have some non-saved text file or another open on my computer (OSX), and even when the computer crashes or is forced to reboot, those text files are usually still open, with all of their data intact. The only way that could be true would be if the application and/or the OS are regularly saving the contents of those windows to disk, in some sort of temporary file at least.

And this is a good example of “stuff happening in the background”. The size of windows, and which file they are from, etc. is often stored in windows’ AppData folders; many programs include an Autosave option (but it only kicks in if you have altered the contents.) AFAIK, never made a detailed study, the regular autosaves don’t go into recycle when replaced; but you can see Office programs, for example, will create a temporary file in the same folder that replicates the file name but replaces the first two characters with “~$”; but only one such file.

Windows does regular updates - with Windows 10 you have to go out of your way to turn these off 9and for good reason).

I have a 1TB drive, my windows folder is 35GB. Log files, etc. are a tiny tiny fraction of that. One large document is a tiny fraction of that. The King James Bible is about 4MB; a 24Mp photo (huge) is about 6MB. What we think of as “a lot of data” is nothing compared to what is accumulated over time.

So really the question becomes “what order does the OS use or re-use sectors/clusters of disk space?” The answer is, like for so much of life today - “it depends”.

One major caveat, as mentioned earlier, is that SSD and other NVRAM devices typically go out of their way to “spread the load” and reuse as little as possible, since each bit can accommodate a limited number of writes. For older tech magnetic hard drives, the algorithms probably favor least fragmented and close together (to minimize head movement between tracks) so who knows. So most likely, your data is still there but every case is different.

(Back in the “good old days” head movement was a more important issue, as was rotational delay, since devices were slower. Today, magnetic disks have built in RAM buffers, algorithms that “guess” to read ahead - i.e. you started reading this file chain of clusters, I’ll assume you want to keep going and I will read ahead into the buffer. Fancier disks and controllers also have write buffer RAM, so that waiting for the disk to write does not delay the program. As has been mentioned over and over, the OS takes care of these details and what it does is a mystery to mortal men, or at least those without a slide rule or programmable calculator in their pocket.)

---

<div class="post-metadata">

**Author:** ![gnoitall](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@gnoitall](https://boards.straightdope.com/u/gnoitall)\
**Post date:** [October 13, 2021, 5:23am UTC](https://boards.straightdope.com/t/modern-windows-o-s-inquiry-about-deleting-a-file/952043/24 "2021-10-13T05:23:04Z")

</div>

> [@ASGuy](#):
>
> But is Windows a “modern” file system? Perhaps, but I don’t think it does this.

Windows NTFS supports tail packing.

> **[File System Functionality Comparison - Win32 apps](https://learn.microsoft.com/en-us/windows/win32/fileio/filesystem-functionality-comparison)**
>
> Tables that list functionality and feature support comparisons for the four main Windows file systems, NTFS, exFAT, UDF, and FAT32.

> [@](#):
>
> | Feature | **NTFS** | exFAT | UDF | FAT32 |
> | --- | --- | --- | --- | --- |
> | **Tail packing** | **Yes (small files are made resident in the MFT stream descriptor)** | No | No | No |
> | Extents | Yes | No | Yes | No |
> | Variable block size | No (set by the volume) | No | No | No |

[Previous page](https://boards.straightdope.com/t/modern-windows-o-s-inquiry-about-deleting-a-file/952043.md?page=1)
