deleteCase method
The DeleteCase API permanently deletes a case and all its associated resources from the cases data store. After a successful deletion, you cannot:
- Retrieve related items
- Access audit history
- Perform any operations that require the CaseID
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter caseId :
A unique identifier of the case.
Parameter domainId :
A unique identifier of the Cases domain.
Implementation
Future<void> deleteCase({
required String caseId,
required String domainId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/domains/${Uri.encodeComponent(domainId)}/cases/${Uri.encodeComponent(caseId)}',
exceptionFnMap: _exceptionFns,
);
}