2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: reject
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
2019-11-10 08:07:27 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Remove the given columns from the table. If you want to remove rows, try 'drop'.
|
2019-11-10 08:07:27 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2019-11-10 08:07:27 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> reject ...rest```
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `...rest`: the names of columns to remove from the table
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-20 02:13:33 +01:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Lists the files in a directory without showing the modified column
|
|
|
|
```shell
|
|
|
|
> ls | reject modified
|
|
|
|
```
|
|
|
|
|
|
|
|
Reject the specified field in a record
|
|
|
|
```shell
|
|
|
|
> echo {a: 1, b: 2} | reject a
|
|
|
|
```
|