view docs/nitros9guide/del.refentry @ 2798:b70d93f8d7ce lwtools-port

Updated coco1/modules/makefile and coco3/modules/makefile to help resolve issues with i(x) and s(x) descriptors. Updated level1/coco1/modules/makefile & level2/coco3/modules/makefile so that correct values would be sent to assembler when building superdesc.asm for s(x).dd and i(x).dd descriptors.
author drencor-xeen
date Mon, 28 Jan 2013 16:13:05 -0600
parents b00cf13c9f61
children
line wrap: on
line source

<refentry id="del">
<refnamediv>
<refname>DEL</refname>
<refpurpose>Delete a file</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>del</command>
<arg choice="opt">
  <option>-x</option>
</arg>
<arg choice="plain">
  <replaceable>path</replaceable>
</arg>
<arg choice="plain">
  &repeatst;<replaceable>path</replaceable>&repeaten;
</arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1><title>Description</title>
<para>
This command is used to delete the file(s) specified by the
pathlist(s). The user must have write permission for the file(s).
Directory files cannot be deleted unless their type is changed to
non-directory: see the <command>attr</command> command description.
</para>
<para>
If the -x option appears, the current
<emphasis>execution</emphasis> directory is assumed.
</para>
<para>
For more information see: <xref linkend="sec3.5"/>, <xref linkend="sec3.8.1"/>
</para>
</refsect1>
<refsect1><title>Examples</title>
<screen>
del test_program old_test_program

del /D1/number_five

OS9:dir /D1

   Directory of /D1 14:29:46
myfile          newfile

OS9:del /D1/newfile
OS9:dir /D1

   Directory of /D1 14:30:37
myfile

OS9:del myprog -x
OS9:del -x CMDS.SUBDIR/file
</screen>
</refsect1>
</refentry>