According to research, laundry lists of users have had the experience of encountering low disk space.
In this case,
Its hard to tell which method is the best one.
DiskPart Clean Performed Accidently
All of those methods seem practical, right?

But have you ever thought of one question what if you delete valuable files accidentally.
What are you planning to do to make up for your mistake?
Do you know how torecover data lost by DiskPart clean?
![]()
Later, I thought to upgrade to win 8.1.
While installing it didnt allow me to install on any partition cause it wants the partition inGPT.
Now, he needs torecover data from cleaned partitions.

Youve still got chance to get back files deleted by mistake.
What if your DiskPart has encountered an error?
Then, punch Hard Disk Drive to start.

After all of them were saved to the chosen disk, you might go there to check.
If therere still some data waiting to be rescued, you could repeat this process.
For more detailed information, yo seeRecover Data From HDD Shows As Unknown Without Damaging It.

Click to see how to recover data from formatted hard drive.
And then, save them out to another drive by tapping the Save button.
Users Feedback
1.

How to recover data when there is no OS to boot the computer?
Issue: the user said he used this DiskPart command while loading an operating system.
Presently there is no OS to boot his laptop.

But there is important data on it, so he wants to know how to recover it.
As for how to do exactly, just refer tothis post talking about operating system not found error.
Data loss from external hard drive?
![]()
MiniTool provides an effective solution and detailed steps for external hard drive recovery.
How to recover more when few files are found and the directory structure was damaged?
Solution: in the case, I suggest using another useful tool of MiniTool company MiniTool Partition Wizard.

Step 2: just choose a way to start diskpart.exe as I have suggested above.
Step 5: throw in clean and press Enter.
Then, DiskPart will finish this task automatically.

At the end of DiskPart clean, youll see a prompt saying DiskPart succeeded in cleaning the disk.
Now, you’re free to exit and end the disk re-initialization task.
Or you’re free to just check it in the Windows Disk Management.

Step 1: go to check the disk number and the specificdrive letterof partition you plan to format.
Then, open DiskPart.
After that, Partition * is now the selected partition will appear.

Step 6: jot down format and press Enter again.
And youll see the completed percent is changing automatically.
Conclusion
DiskPart is a great tool to help us achievebasic diskmanagement operations.

Its not impossible to recover data lost by DiskPart commands.