Steps to Erase and Clean a Drive Using Disk Part Command on Windows (2024)

Search Our Support Knowledge Base

Find product articles and support information.

Use the erase and clean to delete a macOS or corrupted partition on the drive to use on Windows.*END

Steps to Erase and Clean a Drive Using Disk Part Command on Windows (1)Critical:

The process is Data Destructiveand cannot be undone.
ALL THE DATA ON THE DRIVE WILL BE LOST!


  1. Press the Windows Key + X.
    Click Disk Management.

    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (2)


  2. Locate the Disk # for the drive.

    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (3)


  3. Press the Windows Key.
    Type cmd.
    Press Enter.

    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (4)


  4. Type diskpart.
    Press Enter.

    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (5)


  5. Type list disk.
    Press Enter.

    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (6)


  6. Locate the Disk #.

    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (7)


  7. Type Select Disk #.
    Press Enter.
    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (8)

    The # means the disk number for the drive.


    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (9)


  8. Type clean.
    Press Enter.IMPORTANT: All data on the drive will be erased.

    Steps to Erase and Clean a Drive Using Disk Part Command on Windows (10)


  9. Format the drive.

    Need more help?
    Answer ID 8200: Steps to Format a Drive for Use with Windows or macOS

Return to Top

Details

Answer ID 25210
Published 12/21/2018 01:05 PM
Updated 07/18/2024 08:52 PM

Please rate the helpfulness of this answer

Steps to Erase and Clean a Drive Using Disk Part Command on Windows (11)

Steps to Erase and Clean a Drive Using Disk Part Command on Windows (2024)

FAQs

Steps to Erase and Clean a Drive Using Disk Part Command on Windows? ›

Clean all does everything that clean does, but all data is zeroed (securely erased) so that it's not recoverable. Removes any and all partition or volume formatting from the disk with focus. On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information are overwritten.

How to use diskpart to clean a drive? ›

Take the following steps to clean a disk:
  1. At a command prompt, type diskpart.
  2. At the DISKPART prompt, type select disk [number]. Enter the disk number to wipe.
  3. At the DISKPART prompt, type clean all.
  4. At the DISKPART prompt, type exit.
Aug 14, 2024

How do I clear a diskpart drive? ›

Steps to Erase and Clean a Drive Using Disk Part Command on Windows
  1. Press the Windows Key + X. Click Disk Management.
  2. Locate the Disk # for the drive.
  3. Press the Windows Key. Type cmd. ...
  4. Type diskpart. Press Enter.
  5. Type list disk. Press Enter.
  6. Locate the Disk #.
  7. Type Select Disk #. Press Enter. ...
  8. Type clean. Press Enter.
Dec 21, 2018

How do I type clean all in diskpart prompt? ›

Clean all does everything that clean does, but all data is zeroed (securely erased) so that it's not recoverable. Removes any and all partition or volume formatting from the disk with focus. On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information are overwritten.

How to clear a disk using cmd? ›

How to start Disk Cleanup by using the command line
  1. Click Start, and then click Run.
  2. In the Open box, type the following command, and then press Enter: c:\windows\SYSTEM32\cleanmgr.exe /dDrive Note In this command, the placeholder Drive represents the drive letter of the hard disk to be cleaned.

Does diskpart clean all delete data? ›

Warning: Diskpart Erase/Clean will permanently erase/destroy all data on the selected drive. Please be certain that you are erasing the correct disk. From the diskpart prompt, type clean and press Enter. The drive's partition, data, and signature is now removed.

How to use diskpart on Windows? ›

You can try to use the Diskpart tool via the Command prompt to format the drive.
  1. During the Windows 10 setup, press Shift + F10 keyboard shortcut to open Command Prompt.
  2. When Command Prompt opens, enter diskpart and press Enter.
  3. Now enter list disk and press Enter. ...
  4. Enter select disk <disk number> and press Enter.
Jan 30, 2023

How to use diskpart to fix drive? ›

Let's use the diskpart command to make the drive available for scanning.
  1. Open Command Prompt. Type diskpart and press enter. ...
  2. In the new window, type list volume and hit enter.
  3. Select your main drive. ...
  4. Now type attributes disk clear readonly and hit Enter.
Sep 22, 2023

How to clean and format USB using diskpart? ›

Plug the USB into your computer, then run CMD as Administrator. After using the commands "diskpart", "list disk", and "select disk", type "clean" and press "Enter". Use the command "create partition primary" to further format your USB drive.

How do I erase a hard drive? ›

To wipe your PC hard drive:
  1. Go to Settings.
  2. Select System from the left side menu.
  3. Click on Recovery.
  4. Choose Reset PC.
  5. Select either Keep my files (removes apps and settings but retains your personal files) or Remove everything (removes apps, settings, and personal files).
Jul 9, 2024

How to clean a drive? ›

To delete temporary files:
  1. In the search box on the taskbar, type disk cleanup, and select Disk Cleanup from the list of results.
  2. Select the drive you want to clean up, and then select OK.
  3. Under Files to delete, select the file types to get rid of. To get a description of the file type, select it.
  4. Select OK.

What is the command to clear everything in Command Prompt? ›

Type “cls” and press Enter. This command will instantly clear the screen, giving you a clear workspace. It's a quick and effective method.

How to clear read only using diskpart? ›

Follow these steps:
  1. Open Command Prompt as Administrator.
  2. Run the command "diskpart".
  3. Run the command "list disk".
  4. Run the command "select disk <index_number>"
  5. Run the command "attributes disk clear read only" to clear the read-only status.
Apr 1, 2024

How to reset a disk using diskpart? ›

Run DiskPart
  1. Type diskpart into the command prompt and press Enter.
  2. Type list disk and press Enter to see all the attached disks.
  3. Make sure you know which disk you want to reset before continuing! ...
  4. Type select disk # and press Enter (where # is the disk number you want to reset)

What is the command for Disk Cleanup? ›

Boost Your PC Speed with Disk Cleanup

On your keyboard, press the Windows and R keys at the same time to open the Run window. Type cleanmgr, then press ENTER. The Disk Cleanup window should appear.

How to delete all files in a drive using CMD? ›

You can use cmd to delete all the files and folders using del and the /S flag ( to tell cmd to remove all files from all subdirectories).

Does diskpart clean remove viruses? ›

It's important to remember that while Disk Cleanup can greatly improve system performance and free up disk space, it can't protect you from viruses or other malicious threats. For that, you need a dedicated antivirus or security solution. We recommend using McAfee+ to protect yourself from such threats.

How do you clean a drive? ›

In the search box on the taskbar, type disk cleanup, and select Disk Cleanup from the list of results. Select the drive you want to clean up, and then select OK.

How to clean format a drive? ›

Use Disk Management to wipe a hard drive
  1. Connect your external drive to your PC via a USB port. Then, press the Windows key + X and select Disk Management.
  2. Right-click the drive you'd like to wipe and select Format. Choose a new file system.
Jan 27, 2022

Top Articles
20 Interesting Facts About Anubis The Egyptian God | Beano
What is 12 of 15 as percentage - Aspose percentage calculator
Tattoo Shops Lansing Il
Artem The Gambler
Www.1Tamilmv.cafe
Libiyi Sawsharpener
Nwi Police Blotter
Die Windows GDI+ (Teil 1)
Videos De Mexicanas Calientes
Konkurrenz für Kioske: 7-Eleven will Minisupermärkte in Deutschland etablieren
Obituaries
Is Csl Plasma Open On 4Th Of July
Ashlyn Peaks Bio
10000 Divided By 5
Big Y Digital Coupon App
Back to basics: Understanding the carburetor and fixing it yourself - Hagerty Media
Strange World Showtimes Near Cmx Downtown At The Gardens 16
Morgan Wallen Pnc Park Seating Chart
12 Best Craigslist Apps for Android and iOS (2024)
Raid Guides - Hardstuck
Mephisto Summoners War
Walmart End Table Lamps
Haunted Mansion Showtimes Near Millstone 14
U Arizona Phonebook
Tamilyogi Proxy
Persona 4 Golden Taotie Fusion Calculator
Loft Stores Near Me
FDA Approves Arcutis’ ZORYVE® (roflumilast) Topical Foam, 0.3% for the Treatment of Seborrheic Dermatitis in Individuals Aged 9 Years and Older - Arcutis Biotherapeutics
Lowes Undermount Kitchen Sinks
Employee Health Upmc
Bòlèt Florida Midi 30
Cain Toyota Vehicles
John Philip Sousa Foundation
Angel del Villar Net Worth | Wife
134 Paige St. Owego Ny
Armor Crushing Weapon Crossword Clue
Scioto Post News
Jr Miss Naturist Pageant
Uhaul Park Merced
Delaware judge sets Twitter, Elon Musk trial for October
Poe Flameblast
Wo ein Pfand ist, ist auch Einweg
Fapello.clm
Frommer's Philadelphia &amp; the Amish Country (2007) (Frommer's Complete) - PDF Free Download
Quick Base Dcps
Craigslist Woodward
Cult Collectibles - True Crime, Cults, and Murderabilia
Advance Auto.parts Near Me
Besoldungstabellen | Niedersächsisches Landesamt für Bezüge und Versorgung (NLBV)
Myhrkohls.con
Bomgas Cams
E. 81 St. Deli Menu
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5591

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.