Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

New answers tagged

0 votes

How file deletion works?

On a hard disk drive, you have a bunch of bits, each of which is either one or zero. The bits are never blank. When we say that some storage is blank, we just mean that the ones and zeros there don't ...
user avatar
  • 227
2 votes

How file deletion works?

Disks are not divided into files, they are divided into blocks. A physical disk doesn't know what a file is at all. A filesystem adds structure to the disk, including metadata that groups blocks into ...
user avatar
  • 1,019
2 votes

How file deletion works?

Removing just the reference is faster. It just marks one field on the file metadata to mark it as unused instead of overwriting the entire file. Imagine how slow would it be to overwrite several GB ...
user avatar
  • 50.5k

Top 50 recent answers are included