# Remove DataColumn

Removes a column from the table. The column is specified by its name or by its index. The input table is not modified; the result is written to the `Result` output.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `ColumnName` | `String` | ❌ No     | Name of the column to remove. Either `ColumnName` or `ColumnIndex` must be set; if both are set, the name is used. If the column does not exist, the activity throws an error. |
| `ColumnIndex` | `Int32?` | ❌ No     | Index of the column to remove (zero-based). Either `ColumnName` or `ColumnIndex` must be set. If it is greater than the number of columns, the activity throws an error. |
| `DataTable` | `DataTable` | ✅ Yes    | Table to remove the column from. |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `Result`  | `DataTable` | Table with the column removed. |