Answers for "how to delete a file in the command line"

2

remove a file or dir in linux or mac or ubuntu

note:your_file_name can be a dir or a file 

sudo rm -r your_file_name
Posted by: Guest on May-11-2020
0

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 in the command line"

Python Answers by Framework

Browse Popular Code Answers by Language