Delete a file: Difference between revisions

Content added Content deleted
m (omit TI-BASIC)
(→‎{{header|PowerShell}}: corrected code, couldn't possibly work before, also added the file system root part)
Line 258: Line 258:


=={{header|PowerShell}}==
=={{header|PowerShell}}==
<lang powershell># possible aliases for Remove-Item: rm, del, ri

<lang powershell> Delete-Item input.txt
Remove-Item input.txt
Remove-Item \input.txt # file system root</lang>

# Can also use the del alias for the Delete-Item cmdlet
del input.txt</lang>


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