elasticsearch/docs/reference/esql/processing-commands/drop.asciidoc
Nik Everett a7ca62de8e
Document ESQL docs examples (#105197)
This adds some docs to the top of `docs.csv-spec` and
`docs-IT_tests_only.csv-spec` telling folks not to add more stuff there
and instead put new examples into whatever files they line up with. It
also shifts some things out of the file to "prime the pump" on cleaning
it up.
2024-02-06 12:34:02 -05:00

34 lines
543 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}/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]
----