File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ def clear_data_xpack(client)
126126 clear_machine_learning_indices ( client )
127127 create_x_pack_rest_user ( client )
128128 clear_data ( client )
129+ clear_data_frame_transforms ( client )
129130 end
130131
131132 private
@@ -200,6 +201,12 @@ def clear_snapshots_and_repositories(client)
200201 end
201202 end
202203
204+ def clear_data_frame_transforms ( client )
205+ client . data_frame . get_data_frame_transform ( transform_id : '*' ) [ 'transforms' ] . each do |transform |
206+ client . data_frame . delete_data_frame_transform ( transform_id : transform [ :id ] )
207+ end
208+ end
209+
203210 def clear_indices ( client )
204211 indices = client . indices . get ( index : '_all' ) . keys . reject do |i |
205212 i . start_with? ( '.security' ) || i . start_with? ( '.watches' )
You can’t perform that action at this time.
0 commit comments