deleteFarm method

Future<void> deleteFarm({
  1. required String farmId,
})

Deletes a farm.

May throw AccessDeniedException. May throw InternalServerErrorException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter farmId : The farm ID of the farm to delete.

Implementation

Future<void> deleteFarm({
  required String farmId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/2023-10-12/farms/${Uri.encodeComponent(farmId)}',
    exceptionFnMap: _exceptionFns,
  );
}