deleteCredential method
Delete credential by ID
Implementation
Future<Response> deleteCredential(String id) async {
try {
final response = await _dio.delete(
'/credentials/$id',
);
return response;
} on DioException catch (e) {
throw Exception('Failed to delete credential: ${e.message}');
}
}