deletePolicyWithHttpInfo method
Delete a policy
Permanently deletes a policy. It cannot be undone. This action also immediately deletes any licenses that the policy is associated with.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> deletePolicyWithHttpInfo(String account, String policy,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/policies/{policy}'
.replaceAll('{account}', account)
.replaceAll('{policy}', policy);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}