From WikiChip
Editing mirc/commands/remove

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
 
{{mirc title|/remove Command}}
 
{{mirc title|/remove Command}}
The '''/remove''' command can be used to delete a file permanently or sends it to the recycle bin. The filename cannot be a wildcard pattern. This command prints "* Removed '<filename>'", to avoid that message, use the dot prefix (i.e. use /.remove).
+
The '''/remove command''' can be used to delete a file permanently or sends it to the recycle bin. The filename cannot be a wildcard pattern. This command prints "* Removed '<filename>'", to remove that message prefix the command with a dot (i.e. use /.remove).
  
 
== Synopsis ==
 
== Synopsis ==
Line 9: Line 9:
  
 
== Parameters ==
 
== Parameters ==
* '''<filename>''' - the file to remove. Your filename can be case-insensitive, but cannot include ?* wildcards. In the absence of a full path, filenames are assumed to be relative to $mircdir. If the <filename> contains any spaces, it must be enclosed in quotes.
+
* '''<filename>''' - the file to remove
 
 
Note: If filename contains 2+ consecutive spaces, this command searches for a filename without the duplicate space, and deletes that file instead, if it exists.
 
  
 
== Example ==
 
== Example ==
<syntaxhighlight lang="mIRC">create and write to a file:
+
<syntaxhighlight lang="mIRC">; create and write to a file
 
/write foo.txt Hello There
 
/write foo.txt Hello There
remove the file:
+
 
/remove foo.txt
+
; remove the file
delete a filename containing space from downloads subfolder:
+
/remove foo.txt</syntaxhighlight>
//.remove $qt(downloads\test filename.txt)
 
</syntaxhighlight>
 
Note: The dot prefix hides both the success message and the "no such file" error.
 
  
 
== Compatibility ==
 
== Compatibility ==

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)