We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7354265 commit 6b7098aCopy full SHA for 6b7098a
api-spec-testing/wipe_cluster_8.rb
@@ -72,6 +72,7 @@ def wipe_cluster(client)
72
if platinum?
73
clear_ml_jobs(client)
74
clear_datafeeds(client)
75
+ delete_data_frame_analytics(client)
76
end
77
delete_all_ilm_policies(client) if @has_ilm
78
delete_all_follow_patterns(client) if @has_ccr
@@ -388,6 +389,14 @@ def wipe_calendars(client)
388
389
client.ml.delete_calendar(calendar_id: calendar['calendar_id'])
390
391
392
+
393
+ def delete_data_frame_analytics(client)
394
+ dfs = client.ml.get_data_frame_analytics
395
396
+ dfs['data_frame_analytics'].each do |df|
397
+ client.ml.delete_data_frame_analytics(id: df['id'], force: true)
398
+ end
399
400
401
402
0 commit comments