deleteDocument method
Permanently deletes the specified document and its associated metadata.
May throw ConcurrentModificationException.
May throw ConflictingOperationException.
May throw EntityNotExistsException.
May throw FailedDependencyException.
May throw LimitExceededException.
May throw ProhibitedStateException.
May throw ServiceUnavailableException.
May throw UnauthorizedOperationException.
May throw UnauthorizedResourceAccessException.
Parameter documentId :
The ID of the document.
Parameter authenticationToken :
Amazon WorkDocs authentication token. Not required when using Amazon Web
Services administrator credentials to access the API.
Implementation
Future<void> deleteDocument({
required String documentId,
String? authenticationToken,
}) async {
final headers = <String, String>{
if (authenticationToken != null)
'Authentication': authenticationToken.toString(),
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/api/v1/documents/${Uri.encodeComponent(documentId)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}