Delete a file: Difference between revisions

(add →‎Joy)
Line 1,524:
system("rmdir docs")
</syntaxhighlight>
 
=={{header|RPL}}==
There is a unique RPL instruction to delete both files and directories. Directories must be empty to be deletable.
'output.txt' PURGE
'docs' PURGE
HOME output.txt' PURGE
HOME 'docs' PURGE
Basically, <code>HOME</code> changes the current to directory to the system root. If the last two commands are done successively, only the first call is necessary.
 
=={{header|Ruby}}==
1,150

edits