1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>NANDDelete</title>
9</head>
10
11<body>
12
13<h1>NANDDelete</h1>
14
15<h2>C Specification</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/nand.h&gt;
18
19s32 NANDDelete(const char *name);
20</code></pre></dd></dl>
21
22<h2>Arguments</h2>
23<p>
24<TABLE border="1" >
25  <tr>
26<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>name</EM></STRONG></CODE></TD>
27<TD width="520">Specifies the file or directory name.</TD>
28  </tr>
29</TABLE>
30</p>
31
32
33<h2>Return Values</h2>
34<p>
35Returns one of the following codes:
36<p>
37<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_ALLOC_FAILED<br> NAND_RESULT_BUSY<br> NAND_RESULT_CORRUPT<br> NAND_RESULT_INVALID<br> NAND_RESULT_NOEXISTS<br> NAND_RESULT_OPENFD<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code>
38</p>
39</p>
40
41<H2>Description</H2>
42<p>
43Deletes a file or directory. All files and directories contained in the directory to delete are deleted. Open files cannot be deleted.
44</p>
45
46<p>
47This function may put the current thread to sleep. For precautions when calling similar functions, refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.
48</p>
49
50<h2>See Also</h2>
51<p>
52<code><a href="./NANDCreate.html">NANDCreate</a></code>, <code><a href="./NANDCreateAsync.html">NANDCreateAsync</a></code>, <code><a href="./NANDCreateDir.html">NANDCreateDir</a></code>, <code><a href="./NANDCreateDirAsync.html">NANDCreateDirAsync</a></code>, <code><a href="./NANDDeleteAsync.html">NANDDeleteAsync</a></code>, <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>
53</p>
54
55<H2>Revision History</H2>
56<p>
572007/09/25 Added information on the sleep status of threads.<br>2006/11/30 Added <CODE>NAND_RESULT_ALLOC_FAILED</CODE> and <CODE>NAND_RESULT_BUSY</CODE> codes.<br>2006/06/16 Initial version.<br>
58</p>
59
60
61<hr><p>CONFIDENTIAL</p></body>
62</html>
63