How are deleted files replaced by new ones?

280 views

Say if the internal storage of your phone were to fill up and you deleted something like a video or game, what is it actually doing to the file in order to take it off the storage and how are new files able to just replace it?

In: 3

8 Answers

Anonymous 0 Comments

There’s a record in the filesystem saying what files exist and what blocks on the storage system contain the pieces of the file. When you delete something it just clears that record and marks the blocks available for new use. This means that the data is still technically there and could be read if you could re-discover the blocks and put them in the right order.

“Secure delete” goes in and zeroes out the bits first, to make sure the data actually no longer exists.

You are viewing 1 out of 8 answers, click here to view all answers.