Secure File Removal Using the ERASE Command, Examples?
Please use Eraser to delete sensitive data. It can also clean digital SD memory cards of all recoverable data!
As with Linux, Appel's Mac OS and other systems like Android, Microsoft Windows 11, 10, ... and MS Server OS has programs to safely delete data. There are handy programs, such as free Windows Safe Delete tool.
But if you want to do this important task with cmd.exe, you will find helpful tips and examples here. PS: The command program ERASE is often used by administrators on Windows Server systems, but you can also test it for yourself.
Do you want to delete "C: \ Importantfolder \ Private.xls" (Y / N)? y
File deleted - C:\Importantfolder\Private.xls
Do you want to delete "C:\Importantfolder\Security.xls" (Y / N)? y
File was deleted - C:\Importantfolder\Security.xls
Do you want to delete "C:\Importantfolder\Important.xls" (Y / N)? y
File deleted - C:\Importantfolder\Important.xls
Tip: Wildcards can be used to delete multiple files. If a directory is specified, all files in this directory will be deleted!
Parameter von ERASE man kann mit einem Test-Ordner ein wenig experimentieren!
/P Prompts you for confirmation before deleting each file.
/F Forces deletion of read-only files.
/S Deletes all files in all subdirectories.
/Q No query when using global placeholders.
/A Selects the files to be deleted by the attribute.
R Read-only files
S System files
H Hidden files
A Files to archive
I Unindexed files
L Analysis points
2.) Where is the advantage when deleting about Windows command ERASE?
Especially with external drives, you can specifically delete certain file extensions. And the deletion confirmation is also handy, not accidentally delete important files.
If you remove a document or an app on your Windows PC, you will find that it has been moved directly to the Recycle Bin, and / or not deleted, especially if you do not see a deletion confirmation dialog before, the deletion is not a real delete action.