Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

Securely delete data from hard drives with DiskPart via command prompt!


It is easy to securely erase data from hard drives with DiskPart via command prompt in MS Windows 11, 10, ... or Server OS!



Safely erase a hard drive with Diskpart on Windows OS and MS Server!

There are practical ►►  tools like Secure Erase for Windows , but as an administrator you can also securely erase the data with DiskPart, DiskPart is a command interpreter in text mode that comes with Windows 11, 10, 8.1, ... and MS Server 2022, 2019, 2016, ... is included.


Contents:

1.) ... start and list the hard drives for safe deletion!
2.) ... Select the hard drive / partition on the drive!
3.) ... The secure deletion of data with DiskPart under Windows!
4.) ... What can I do if I want to C: \ Secure-Erase? 



1.) Start and list the hard drives for safe deletion!

1. As always, ►► open an elevated command prompt

2. Enter the following: diskpart

3. To see them all use the list disk  command 

(... see Image-1 Point 1  to 5)

 
(Image-1) Securely delete data via command prompt on MS Windows OS!
Securely delete data via command prompt on MS Windows OS!

-
▲ Back to the top ▲




DiskPart is a text mode command interpreter that ships with Windows 10, 8.1, Server 2019, 2016. This tool allows you to manage objects (hard drives, partitions or volumes) using scripts or direct input at the command prompt. A lesser known feature of DiskPart is the ability to securely erase a hard drive or partition. 

-
▲ Back to the top ▲


2.) Select the hard drive / partition on the drive!

Select disk: Command: select disk 1




DISKPART> select disk 1

Disk 1 is now the selected disk.
 

3.) The secure deletion of data with DiskPart under Windows!

After the data carrier is selected  



 
DISKPART> clean
 
The disk has been cleaned.




4.) What can I do if I want to C: \ Secure-Erase? 

You can of course reinstall the system and then overwrite the entire free area with random numbers!

►► have the  entire free area overwritten with random numbers!



Or you can unplug the hard drive and connect it to another computer in order to then securely delete the data. You can do this on the other computer, notebook, laptop using a USB adapter for hard drives  

►► USB external hard drive adapter !









FAQ 86: Updated on: 26 August 2023 10:47 Windows
Windows-Console

Change the screen buffer size of the Windows 11, 10, ... command prompt!


Changing the screen buffer size for MS Windows OR Command Prompt output is very convenient and easy on Desktops and MS Server OS With larger / longer text
Windows-Console

All WiFi / WLAN access points via command from the command prompt!


It is easy to list all WiFi / WLAN access points using a command prompt under Windows 11, 10, 8.1 and MS Server 2019, 2016, The best way to do this
Windows-Console

Generate random numbers in the command prompt or batch file!


It is easy to generate random numbers via a batch file under Windows Server and all MS Windows 11, 10, Desktop OS and MS Server There are free tools
Windows-Console

Information about a specific user account via cmd.exe or PowerShell!


Under MS Windows 11, 10, Desktops and MS Server, information on a specific user account can be obtained quickly via the command line Important user
Windows-Console

Is my Windows User a Microsoft Account or a Local command line query!


It is practical and easy to determine from the command line in PowerShell: whether there is a Microsoft Account or is a Local Account on Windows 11, 10,
Windows-Console

Change the workgroup / PC name using the command prompt or PowerShell!


Changing workgroup or PC name using Command Prompt or PowerShell is om MS Windows 11, 10, and MS Server OS Is not impossible either, this is often used
Windows-Console

Query the Mac address via the command line (CMD)!


You can find out the mac address physical address of a computer with the getmac command on MS Windows 11, 10, etc. This can also be used to get the

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, 11, 10, console, securely, delete, data, from, hard, drives, diskpart, command, prompt, erase, safely, drive, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + IsMyHdOK
  + AutoPowerOptionsOK
  + OneLoupe
  + TraceRouteOK
  + GetWindowText
  + AutoHideMouseCursor
  + Desktop.Calendar.Tray.OK
  + OK.Its.Raining.Men
  + Run-Command
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Tabs in Edge are suddenly on the left and not at the top! ◄
► All subfolders in Explorer show shortcut directory tree! ◄
► Right Q-Dir Version! ◄
► Flakes for the Windows 11/10/8.1 and Server OS! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....