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
How to Build a Staffing Model for Your Business | Replicon
Start a new git repository
Erika Kullberg Wikipedia
Linkvertise Bypass 2023
Top Financial Advisors in the U.S.
Walgreens On Nacogdoches And O'connor
The Connecticut Daily Lottery Hub
Indiana Immediate Care.webpay.md
Best Food Near Detroit Airport
Diesel Mechanic Jobs Near Me Hiring
I Touch and Day Spa II
Byte Delta Dental
Puretalkusa.com/Amac
Fdny Business
Skyward Login Jennings County
Nhl Tankathon Mock Draft
Selfservice Bright Lending
Lakers Game Summary
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Dragger Games For The Brain
Sodium azide 1% in aqueous solution
Sadie Sink Reveals She Struggles With Imposter Syndrome
48 Oz Equals How Many Quarts
Pioneer Library Overdrive
Lbrands Login Aces
Ice Dodo Unblocked 76
Wheeling Matinee Results
R/Sandiego
Que Si Que Si Que No Que No Lyrics
Worlds Hardest Game Tyrone
Mandy Rose - WWE News, Rumors, & Updates
Eastern New Mexico News Obituaries
Cdcs Rochester
How To Upgrade Stamina In Blox Fruits
Samantha Lyne Wikipedia
Seminary.churchofjesuschrist.org
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
Lucifer Morningstar Wiki
Memberweb Bw
The Machine 2023 Showtimes Near Roxy Lebanon
Gander Mountain Mastercard Login
Enter The Gungeon Gunther
Anonib New
Westport gun shops close after confusion over governor's 'essential' business list
Michaelangelo's Monkey Junction
Wera13X
Fahrpläne, Preise und Anbieter von Bookaway
Turning Obsidian into My Perfect Writing App – The Sweet Setup
Coldestuknow
Volstate Portal
Olay Holiday Gift Rebate.com
Wayward Carbuncle Location
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.