deleteVariable method

Future<Response> deleteVariable(
  1. String id
)

Delete a variable by ID

Implementation

Future<Response> deleteVariable(String id) async {
  try {
    final response = await _dio.delete(
      '/variables/$id',
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to delete variable: ${e.message}');
  }
}