deleteModel method

Future<void> deleteModel({
  1. required String modelName,
  2. required String restApiId,
})

Deletes a model.

May throw BadRequestException. May throw ConflictException. May throw NotFoundException. May throw TooManyRequestsException. May throw UnauthorizedException.

Parameter modelName : The name of the model to delete.

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

Future<void> deleteModel({
  required String modelName,
  required String restApiId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/models/${Uri.encodeComponent(modelName)}',
    exceptionFnMap: _exceptionFns,
  );
}