mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-26 16:17:19 -04:00
This copies the first line of the description of each command to just under the syntax so that it's "in order", before the `Parameters` section. That way if you are reading from top to bottom you see: ``` syntax short description parameter names and descriptions long description examples ``` I've also removed the `Description` section entirely if the description was just one sentence. So in some cases that just isn't `long description`.
32 lines
528 B
Text
32 lines
528 B
Text
[discrete]
|
|
[[esql-drop]]
|
|
=== `DROP`
|
|
|
|
The `DROP` processing command removes one or more columns.
|
|
|
|
**Syntax**
|
|
|
|
[source,esql]
|
|
----
|
|
DROP columns
|
|
----
|
|
|
|
*Parameters*
|
|
|
|
`columns`::
|
|
A comma-separated list of columns to remove. Supports wildcards.
|
|
|
|
*Examples*
|
|
|
|
[source,esql]
|
|
----
|
|
include::{esql-specs}/drop.csv-spec[tag=height]
|
|
----
|
|
|
|
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}/drop.csv-spec[tag=heightWithWildcard]
|
|
----
|