•Arnošt Havelka
The Delete Command
Remove unwanted files forever.
Start Interactive LessonWhen you need to clean up, del (or erase) is your friend. Be careful! Files deleted from the command line do not go to the Recycle Bin. They are gone immediately.
Try the command
Try deleting a file!
Build the command
del
filenameThe file(s) to delete.
Terminal
C:\Users\Student>del temp.txt
Purged entity: temp.txt
Real-World Examples
Delete a specific file:
Terminal
C:\Users\Student>del secret.txt
Delete all files in a directory (clean folder):
Terminal
C:\Users\Student>del /q Temp\*
Knowledge Check
1 / 2Where do files go after 'del'?
References
These documentation links provide authoritative details for the commands used in this article.
Up Next
The RD Command
Remove empty directories.