snippetbashTip
del — Delete one or more files. In PowerShell, this command is an alias of `Remove-Item`. This documentati
Viewed 0 times
deletedelcommandfilesclipowershellmoreone
windows
Problem
How to use the
del command: Delete one or more files. In PowerShell, this command is an alias of Remove-Item. This documentation is based on the Command Prompt (cmd) version of del. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/del>.Solution
del — Delete one or more files. In PowerShell, this command is an alias of Remove-Item. This documentation is based on the Command Prompt (cmd) version of del. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/del>.View the documentation of the equivalent PowerShell command:
tldr remove-itemDelete one or more files or patterns:
del {{file_pattern1 file_pattern2 ...}}Prompt for confirmation before deleting each file:
del {{file_pattern}} /pForce the deletion of read-only files:
del {{file_pattern}} /fRecursively delete file(s) from all subdirectories:
del {{file_pattern}} /sDo not prompt when deleting files based on a global wildcard:
del {{file_pattern}} /qDelete files based on specified attributes:
del {{file_pattern}} /a {{attribute}}Display help and list available attributes:
del /?Code Snippets
View the documentation of the equivalent PowerShell command
tldr remove-itemDelete one or more files or patterns
del {{file_pattern1 file_pattern2 ...}}Prompt for confirmation before deleting each file
del {{file_pattern}} /pForce the deletion of read-only files
del {{file_pattern}} /fRecursively delete file(s) from all subdirectories
del {{file_pattern}} /sContext
tldr-pages: windows/del
Revisions (0)
No revisions yet.