WorkDocs.Client.delete_document_version(**kwargs)¶Deletes a specific version of a document.
See also: AWS API Documentation
Request Syntax
response = client.delete_document_version(
AuthenticationToken='string',
DocumentId='string',
VersionId='string',
DeletePriorVersions=True|False
)
[REQUIRED]
The ID of the document associated with the version being deleted.
[REQUIRED]
The ID of the version being deleted.
[REQUIRED]
Deletes all versions of a document prior to the current version.
None
Exceptions
WorkDocs.Client.exceptions.EntityNotExistsExceptionWorkDocs.Client.exceptions.ProhibitedStateExceptionWorkDocs.Client.exceptions.ConflictingOperationExceptionWorkDocs.Client.exceptions.ConcurrentModificationExceptionWorkDocs.Client.exceptions.UnauthorizedResourceAccessExceptionWorkDocs.Client.exceptions.FailedDependencyExceptionWorkDocs.Client.exceptions.InvalidOperationExceptionWorkDocs.Client.exceptions.UnauthorizedOperationException