Here’s what the above command looks like when paired with the /p parameter: del /p 'C:\Users\username\Desktop\MyFile.txt'ĭelete Folders with Command Prompt on Windows 10 Similarly, you can add the /f parameter to the command to force delete your read-only files. To customize your deletion process, you can use a couple of parameters that the del command offers.įor instance, you can add the /p parameter to the command to get Command Prompt to ask for your confirmation before deleting a file. For example, to delete a file named “MyFile.txt” placed on your desktop, use the following command replacing username with your own username: del 'C:\Users\username\Desktop\MyFile.txt'Īnd your specified file is now deleted from your storage!