Using fsutil command to create a file
If you don’t want to insert text while creating a file then you can use fsutil command for creating a file.
fsutil file createnew filename number_of_bytes
For example –
fsutil file createnew testfile 100
This will create a file with the name testfile with the size of 100 bytes.
How to delete a file from the Windows command prompt
For deleting files in cmd del command is used, the usage of this command is given below.
Suppose we have a file named testfile in our current working directory to delete it use –
del testfile
Forcefully deleting a file
Now if you are unable to delete a file with the above command then use /f with it. The option /f is used to forcefully delete a read-only file.
An example of this is given below –
del /f testfile
To know more about del command use –
help del
Conclusion
Here you have learned how to create or delete a file in the Windows command prompt.
Now if you want to ask something then write us in the comments below.

