Share via


ISecureDirectoryStream.DeleteDirectory(Object) Method

Definition

Deletes a directory.

[Android.Runtime.Register("deleteDirectory", "(Ljava/lang/Object;)V", "GetDeleteDirectory_Ljava_lang_Object_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public void DeleteDirectory (Java.Lang.Object? path);
[<Android.Runtime.Register("deleteDirectory", "(Ljava/lang/Object;)V", "GetDeleteDirectory_Ljava_lang_Object_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member DeleteDirectory : Java.Lang.Object -> unit

Parameters

path
Object

the path of the directory to delete

Attributes

Remarks

Deletes a directory.

Unlike the Files#delete delete() method, this method does not first examine the file to determine if the file is a directory. Whether non-directories are deleted by this method is system dependent and therefore not specified. When the parameter is a relative path then the directory to delete is relative to this open directory.

Java documentation for java.nio.file.SecureDirectoryStream.deleteDirectory(T).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to