Delete a file: Difference between revisions
Content added Content deleted
(add →Joy) |
|||
Line 1,524: | Line 1,524: | ||
system("rmdir docs") |
system("rmdir docs") |
||
</syntaxhighlight> |
</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}}== |
=={{header|Ruby}}== |