deleteCredential method

Future<Response> deleteCredential(
  1. String id
)

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}');
  }
}