# Ui-Table deleting several columns at once

**URL:** https://discourse.nodered.org/t/ui-table-deleting-several-columns-at-once/54069
**Category:** Dashboard
**Created:** [21 November 2021 16:00 UTC](https://discourse.nodered.org/t/ui-table-deleting-several-columns-at-once/54069 "2021-11-21T16:00:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dptek](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dptek](https://discourse.nodered.org/u/dptek)
#### Post date: [21 November 2021 16:00 UTC](https://discourse.nodered.org/t/ui-table-deleting-several-columns-at-once/54069/1 "2021-11-21T16:00:10Z")

</div>

I am trying to delete several columns at once by sending the command **deleteColumn** , but it only deletes the column that refers to the first item of the **arguments** array. Do have I have to send an independent command for each individual column I want to delete? Is there a single command to delete all columns and data, i.e. to clear the table completely?

`{"command": "deleteColumn", "arguments": ["event", "active", "trigger"], "returnPromise": false}`

In this case only **event** column is being deleted.

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [22 November 2021 10:16 UTC](https://discourse.nodered.org/t/ui-table-deleting-several-columns-at-once/54069/2 "2021-11-22T10:16:00Z")

</div>

I don’t think that `deleteColumn` accept an array of columns

> To permanently remove a column from the table deleteColumn function. This function takes any of the standard [column component look up](http://tabulator.info/docs/4.0/components#lookup) options as its first parameter.

So I think you have to send several messages.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [22 December 2021 10:16 UTC](https://discourse.nodered.org/t/ui-table-deleting-several-columns-at-once/54069/3 "2021-12-22T10:16:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
