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