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