Compartilhar via


DocumentsProvider.DeleteDocument(String) Method

Definition

Delete the requested document.

[Android.Runtime.Register("deleteDocument", "(Ljava/lang/String;)V", "GetDeleteDocument_Ljava_lang_String_Handler")]
public virtual void DeleteDocument (string? documentId);
[<Android.Runtime.Register("deleteDocument", "(Ljava/lang/String;)V", "GetDeleteDocument_Ljava_lang_String_Handler")>]
abstract member DeleteDocument : string -> unit
override this.DeleteDocument : string -> unit

Parameters

documentId
String

the document to delete.

Attributes

Exceptions

Remarks

Delete the requested document.

Upon returning, any URI permission grants for the given document will be revoked. If additional documents were deleted as a side effect of this call (such as documents inside a directory) the implementor is responsible for revoking those permissions using #revokeDocumentPermission(String).

Java documentation for android.provider.DocumentsProvider.deleteDocument(java.lang.String).

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