Answers for "how to delete a file through cmd"

5

delete non empty directory cmd

rm -rf directoryname
Posted by: Guest on April-14-2020
1

remove file via command line

del filename  -- removes filename
Posted by: Guest on May-05-2020
1

delete file with cmd

Note** The deleted file will not be store in the recycle bin
del /Q *filename.extension*  --This will delete only specific file in a current dir

del /Q *.txt*  --This will delete all file with .txt 

del /Q *.*  --This will delete all file, except folder
Posted by: Guest on September-19-2021

Code answers related to "how to delete a file through cmd"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language