34,333
edits
Changes
→Deleting a Directory
== Deleting a Directory ==
An existing directory may be removed from the file system using the ''removeFileAtPathremoveItemAtPath'' method, passing though the path of the directory to be removed as an argument:
<pre>
filemgr = [NSFileManager defaultManager];
[filemgr removeFileAtPathremoveItemAtPath: @"/tmp/mynewdir" handler: nil];
</pre>