Differences

This shows you the differences between the selected revisions of the page.

scriptcommand_rm 2013-05-14 scriptcommand_rm 2020-05-29 (current)
Line 1: Line 1:
-====== rm ======+====== rm command ======
Removes one or more remote files. Removes one or more remote files.
Line 6: Line 6:
  rm <file> [ <file2> ... ]   rm <file> [ <file2> ... ]
-===== Remarks =====+===== [[remarks]] Remarks =====
-If [[ui_login_environment#recycle_bin|remote recycle bin]] is configured, moves file to the bin instead of deleting it. Filename can be replaced with [[file_mask|wildcard]] to select multiple files.+If [[ui_login_recycle_bin|remote recycle bin]] is configured, moves file to the bin instead of deleting it. Filename can be replaced with [[file_mask|wildcard]] to select multiple files.
Can remove non-empty directories recursively. Can remove non-empty directories recursively.
 +
 +Effective [[scriptcommand_option|options]]: ''[[scriptcommand_option#failonnomatch|failonnomatch]]''
XML log element: ''[[logging_xml#rm|rm]]'' XML log element: ''[[logging_xml#rm|rm]]''
Line 17: Line 19:
<code winscp> <code winscp>
rm index.html rm index.html
 +</code>
 +<code winscp>
rm index.html about.html rm index.html about.html
 +</code>
 +<code winscp>
rm *.html rm *.html
</code> </code>
Line 33: Line 39:
</code> </code>
-maps to following PowerShell code:+maps to following [[library_powershell|PowerShell]] code:
<code powershell> <code powershell>

Last modified: by martin