# ClearDataTable

> Clears all the data in the specified DataTable.

Clears all the data in the specified DataTable.

## Definition

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

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

## `ClearDataTable(DataTable)`

```
void ClearDataTable(
    ref DataTable dataTable
)
```

`dataTable` [DataTable](https://learn.microsoft.com/dotnet/api/system.data.datatable) : The DataTable object to be cleared of all data.
