When 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\User>del junk.txt /p /f /s
Real-World Examples
Delete a specific file:
Command Prompt
C:\Users\User>del secret.txt
Delete all files in a directory (clean folder):
Command Prompt
C:\Users\User>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.