deleteInsightRules method
Permanently deletes the specified Contributor Insights rules.
If you create a rule, delete it, and then re-create it with the same name, historical data from the first time the rule was created might not be available.
May throw InvalidParameterValueException. May throw MissingRequiredParameterException.
Parameter ruleNames
:
An array of the rule names to delete. If you need to find out the names of
your rules, use DescribeInsightRules.
Implementation
Future<DeleteInsightRulesOutput> deleteInsightRules({
required List<String> ruleNames,
}) async {
ArgumentError.checkNotNull(ruleNames, 'ruleNames');
final $request = <String, dynamic>{};
$request['RuleNames'] = ruleNames;
final $result = await _protocol.send(
$request,
action: 'DeleteInsightRules',
version: '2010-08-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteInsightRulesInput'],
shapes: shapes,
resultWrapper: 'DeleteInsightRulesResult',
);
return DeleteInsightRulesOutput.fromXml($result);
}