deleteSecondFactorWithHttpInfo method
Delete a second factor
Permanently deletes a second factor. It cannot be undone.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> deleteSecondFactorWithHttpInfo(String account, String user, String secondFactor,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/users/{user}/second-factors/{second-factor}'
.replaceAll('{account}', account)
.replaceAll('{user}', user)
.replaceAll('{second-factor}', secondFactor);
// 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,
);
}