deleteApplication method

Future<void> deleteApplication({
  1. required String id,
  2. required String workspaceName,
})

Deletes an application by ID

May throw AccessDeniedException. May throw ConflictingOperationException. May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter id : ID of the Application to delete

Parameter workspaceName : Name of the workspace to associate with the underlying Application

Implementation

Future<void> deleteApplication({
  required String id,
  required String workspaceName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/workspaces/${Uri.encodeComponent(workspaceName)}/applications/${Uri.encodeComponent(id)}',
    hostPrefix: 'api.',
    exceptionFnMap: _exceptionFns,
  );
}