dotnet / dotnet/dotnet-api-docs

Is System.IO.File.Delete function secure?

Open
#2,660 3 comments 0 reactions 0 assignees View on GitHub
area-System.IO dotnet-api/prod Pri2 product-question
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

@agowa338 commented on [Fri Jun 28 2019](https://github.com/dotnet/dotnet-api-docs.de-de/issues/31)

Hello, the documentation does not mention if using this function is secure in the sense of plaintext data being effectively deleted from disk, or if it just removes the file descriptor.

Also the function File.Encrypt is lacking this kind of information. Does it create an encrypted copy of the file or does it actually overwrite the plaintext on disk, so that it cannot easily be restored afterwards.

---
#### Dokumentdetails

⚠ *Bearbeiten Sie diesen Abschnitt nicht. Er ist für die Verknüpfung von docs.microsoft.com zum GitHub-Artikel erforderlich.*

* ID: 8e75a685-603b-ea10-97bc-95cee96c2eee
* Version Independent ID: d20c05c2-d454-d4d6-8693-a023786e18f6
* Content: [File.Delete(String) Method (System.IO)](https://docs.microsoft.com/de-de/dotnet/api/system.io.file.delete?view=netframework-4.8)
* Content Source: [xml/System.IO/File.xml](https://github.com/dotnet/dotnet-api-docs.de-de/blob/live/xml/System.IO/File.xml)
* Product: **dotnet-api**
* Technology: **system.io**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.