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>Syntax</h2>
16<dl><dd><pre class="construction">#include &lt;revolution/nand.h&gt;
17
18s32 NANDDelete(const char *name);
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<p>
23<TABLE class="arguments" border="1" >
24  <tr>
25<TH>name</TH>
26<TD>Specifies the file or directory name.</TD>
27  </tr>
28</TABLE>
29</p>
30
31<h2>Return Values</h2>
32<p>
33Returns one of the following codes.
34<p>
35<code>
36NAND_RESULT_OK<br>
37NAND_RESULT_ACCESS<br>
38NAND_RESULT_ALLOC_FAILED<br>
39NAND_RESULT_BUSY<br>
40NAND_RESULT_CORRUPT<br>
41NAND_RESULT_INVALID<br>
42NAND_RESULT_NOEXISTS<br>
43NAND_RESULT_OPENFD<br>
44NAND_RESULT_UNKNOWN<br>
45NAND_RESULT_FATAL_ERROR<br>
46</code>
47</p>
48</p>
49
50<H2>Description</H2>
51<p>
52Deletes a file or directory. All files and directories contained in the directory to delete are deleted. Open files cannot be deleted.
53</p>
54
55<p>
56This function may put the current thread to sleep. For precautions related to calling similar functions, see <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.
57</p>
58
59<p>
60This function updates the FAT of the Wii console NAND memory.
61</p>
62
63
64<h2>See Also</h2>
65<p class="reference">
66<a href="./NANDCreate.html">NANDCreate</a>,
67<a href="./NANDCreateAsync.html">NANDCreateAsync</a>,
68<a href="./NANDCreateDir.html">NANDCreateDir</a>,
69<a href="./NANDCreateDirAsync.html">NANDCreateDirAsync</a>,
70<a href="./NANDDeleteAsync.html">NANDDeleteAsync</a>,
71<a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>
72</p>
73
74<H2>Revision History</H2>
75<p>
762008/04/23 Commented about updating the FAT.<br>2007/09/25 Added information about the sleep status of threads.<br>2006/11/30 Added the <CODE>NAND_RESULT_ALLOC_FAILED</CODE> and <CODE>NAND_RESULT_BUSY</CODE> codes.<br>2006/06/16 Initial version.<BR>
77</p>
78
79<hr><p>CONFIDENTIAL</p></body>
80</html>