MonobjcMonobjc Documented Class Library
RemoveItemAtURLError Method (URL, error)
NamespacesMonobjc.FoundationNSFileManagerRemoveItemAtURLError(NSURL, NSError%)

Deletes the file, link, or directory (including, recursively, all subdirectories, files, and links in the directory) identified by a given URL.

Original signature is '- (BOOL)removeItemAtURL:(NSURL *)URL error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool RemoveItemAtURLError(
	NSURL URL,
	out NSError error
)
Public Overridable Function RemoveItemAtURLError ( _
	URL As NSURL, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool RemoveItemAtURLError(
	NSURL^ URL, 
	[OutAttribute] NSError^% error
)
Parameters
URL (NSURL)
The URL of a file, link, or directory to delete. The value must not be "." or "..".
error (NSError%)
If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.
Return Value
YES if the removal operation is successful. If the operation is not successful, but the delegate returns YES from the fileManager:shouldProceedAfterError:removingItemAtURL: message, removeItemAtURL:error: also returns YES. Otherwise this method returns NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)