mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 23:57:20 -04:00
* Source commands * Missing word * Processing commands * Apply suggestions from code review Co-authored-by: Alexander Spies <alexander.spies@elastic.co> * Review feedback * Add sort detail for mv * More review feedback --------- Co-authored-by: Alexander Spies <alexander.spies@elastic.co>
34 lines
551 B
Text
34 lines
551 B
Text
[discrete]
|
|
[[esql-drop]]
|
|
=== `DROP`
|
|
|
|
**Syntax**
|
|
|
|
[source,esql]
|
|
----
|
|
DROP columns
|
|
----
|
|
|
|
*Parameters*
|
|
|
|
`columns`::
|
|
A comma-separated list of columns to remove. Supports wildcards.
|
|
|
|
*Description*
|
|
|
|
The `DROP` processing command removes one or more columns.
|
|
|
|
*Examples*
|
|
|
|
[source,esql]
|
|
----
|
|
include::{esql-specs}/docs.csv-spec[tag=dropheight]
|
|
----
|
|
|
|
Rather than specify each column by name, you can use wildcards to drop all
|
|
columns with a name that matches a pattern:
|
|
|
|
[source,esql]
|
|
----
|
|
include::{esql-specs}/docs.csv-spec[tag=dropheightwithwildcard]
|
|
----
|