2019-03-21 12:11:38 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
|
|
|
[[delete-data-frame-transform]]
|
|
|
|
=== Delete {dataframe-transforms} API
|
2019-04-30 13:46:13 -04:00
|
|
|
|
|
|
|
[subs="attributes"]
|
2019-03-21 12:11:38 -04:00
|
|
|
++++
|
|
|
|
<titleabbrev>Delete {dataframe-transforms}</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Deletes an existing {dataframe-transform}.
|
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
beta[]
|
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[delete-data-frame-transform-request]]
|
|
|
|
==== {api-request-title}
|
2019-03-21 12:11:38 -04:00
|
|
|
|
|
|
|
`DELETE _data_frame/transforms/<data_frame_transform_id>`
|
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[delete-data-frame-transform-prereqs]]
|
|
|
|
==== {api-prereq-title}
|
2019-06-12 13:13:04 -04:00
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
* Before you can delete the {dataframe-transform}, you must stop it.
|
2019-06-27 18:16:24 -04:00
|
|
|
* If the {es} {security-features} are enabled, you must have
|
2019-06-12 13:13:04 -04:00
|
|
|
`manage_data_frame_transforms` cluster privileges to use this API. The built-in
|
|
|
|
`data_frame_transforms_admin` role has these privileges. For more information,
|
|
|
|
see {stack-ov}/security-privileges.html[Security privileges] and
|
|
|
|
{stack-ov}/built-in-roles.html[Built-in roles].
|
2019-03-21 12:11:38 -04:00
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
|
|
|
|
[[delete-data-frame-transform-path-parms]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
2019-07-10 17:39:38 -04:00
|
|
|
`<data_frame_transform_id>`::
|
2019-07-12 11:26:31 -04:00
|
|
|
(Required, string) Identifier for the {dataframe-transform}.
|
2019-07-10 17:39:38 -04:00
|
|
|
|
2019-07-22 14:13:25 -04:00
|
|
|
[[delete-data-frame-transform-query-parms]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
|
|
|
`force`::
|
|
|
|
(Optional, boolean) When `true`, the {dataframe-transform} is deleted regardless of its
|
|
|
|
current state. The default value is `false`, meaning that the {dataframe-transform} must be
|
|
|
|
`stopped` before it can be deleted.
|
2019-03-21 12:11:38 -04:00
|
|
|
|
2019-06-26 16:46:21 -04:00
|
|
|
[[delete-data-frame-transform-examples]]
|
2019-06-27 12:42:47 -04:00
|
|
|
==== {api-examples-title}
|
2019-03-21 12:11:38 -04:00
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2019-03-21 12:11:38 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
DELETE _data_frame/transforms/ecommerce_transform
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[skip:setup kibana sample data]
|
|
|
|
|
|
|
|
When the {dataframe-transform} is deleted, you receive the following results:
|
2019-09-06 09:22:08 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
2019-03-21 12:11:38 -04:00
|
|
|
----
|
|
|
|
{
|
|
|
|
"acknowledged" : true
|
|
|
|
}
|
|
|
|
----
|