Android.Provider.DocumentsProvider.DeleteDocument Method
Delete the requested document.

Syntax

[Android.Runtime.Register("deleteDocument", "(Ljava/lang/String;)V", "GetDeleteDocument_Ljava_lang_String_Handler")]
public virtual void DeleteDocument (string documentId)

Parameters

documentId
the document to delete.

Exceptions

TypeReason
Java.IO.FileNotFoundException

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 DocumentsProvider.RevokeDocumentPermission(string).

[Android Documentation]

Requirements

Namespace: Android.Provider
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0