removeDocument
open fun removeDocument(@NonNull content: ContentResolver, @NonNull documentUri: Uri, @NonNull parentDocumentUri: Uri): Boolean(source)
Removes the given document from a parent directory. In contrast to deleteDocument it requires specifying the parent. This method is especially useful if the document can be in multiple parents. This method was only added in N. On versions prior to this, this method calls through to deleteDocument.
Return
true if the document was removed successfully.
Parameters
content
the resolver to use to remove the document.
documentUri
document with FLAG_SUPPORTS_REMOVE
parentDocumentUri
parent document of the document to remove.