Delete a file: Difference between revisions

Content added Content deleted
(→‎{{header|PowerShell}}: corrected code, couldn't possibly work before, also added the file system root part)
m (→‎{{header|PowerShell}}: forgot to delete the directory)
Line 260: Line 260:
<lang powershell># possible aliases for Remove-Item: rm, del, ri
<lang powershell># possible aliases for Remove-Item: rm, del, ri
Remove-Item input.txt
Remove-Item input.txt
Remove-Item \input.txt # file system root</lang>
Remove-Item \input.txt # file system root

Remove-Item -Recurse docs # recurse for deleting folders including content
Remove-Item -Recurse \docs</lang>


=={{header|Python}}==
=={{header|Python}}==