deletePackage method
Delete the package.
May throw BaseException. May throw InternalException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw ValidationException. May throw ConflictException.
Parameter packageID
:
Internal ID of the package that you want to delete. Use
DescribePackages
to find this value.
Implementation
Future<DeletePackageResponse> deletePackage({
required String packageID,
}) async {
ArgumentError.checkNotNull(packageID, 'packageID');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/2015-01-01/packages/${Uri.encodeComponent(packageID)}',
exceptionFnMap: _exceptionFns,
);
return DeletePackageResponse.fromJson(response);
}