When cleaning a drive before resale you can use diskpart clean or clean all.
The clean all (secure erase) is best to delete data.
It will take many hours for clean all and it can run overnight.
https://www.tenforums.com/tutorials/85819-erase-disk-using-diskpart-clean-command-windows-10-a.html
.
.
.
.
.
Please remember to vote and to mark the replies as answers if they help.
On the bottom of each post there is:
Propose as answer = answered the question
On the left side of each post: Vote = a helpful post
.
.
.
.
.