Remove the file file1.txt in the c:\data directory: del C:\data\file1.txt Remove the file file1.txt in the current directory: del file1.txt To delete folders, use the rmdir command.We can use the wildcard (*) character to remove all files in a directory.To force delete read-only files, use the /F option.There is another command, the erase command, and it is identical to the del command, and the syntax is similar.If you use the /p option, the del command prompts for confirmation before deleting each file.The del command removes files permanently without sending them to the Recycle Bin.We can delete multiple files at once: del file1.txt file2.txt Notes ![]() The CMD del command is used to delete files from the command line in the Windows operating system. Windows Del Command, Delete Files Using CMD
0 Comments
Leave a Reply. |