elasticsearch/docs/reference/esql/processing-commands/drop.asciidoc
Abdon Pijpelink 76ab37b35d
[DOCS] Uniform formatting for ES|QL commands (#101728)
* 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>
2023-11-06 08:42:13 +01:00

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]
----