# RemoveDataColumn

> Removes a DataColumn from a specified DataTable.

Removes a DataColumn from a specified DataTable.

## Definition

**Namespace:** UiPath.Activities.System.API

**Assembly:** UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

## `RemoveDataColumn(DataTable, String)`

```
void RemoveDataColumn(
    ref DataTable dataTable,
    string columnName
)
```

`dataTable` [DataTable](https://learn.microsoft.com/dotnet/api/system.data.datatable) : The DataTable object from which the column is to be removed.

`columnName`[String](https://learn.microsoft.com/dotnet/api/system.string) : The name of the column to be removed from the column collection of the DataTable. If this property is set then the ColumnIndex property is ignored.
