Can you be able to delete the Data Table

Hello, Can we be able to delete the Data Table that we have created using Build Data Table activity? I used Clear Data Table activity, but only data is getting deleted but the rows are still there.

1 Like

Hi
Welcome to uipath community
Clear datatable activity will work for sure
We will be having only the headers of the datatable and there would no rows in it
To check that use a write line activity and mention like this
Yourdatatablename.Rows.Count.Tostring
Use this expression in writeline activity next to clear Datatable activity and the output panel will display as 0
Cheers

1 Like

hello @shaan009
just use an Assign activity and assign your DatatableVariable to Nothing

2 Likes

thanks

thank you…it worked

1 Like

Great
Cheers @shaan009

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