When I call to clear the list, I want it to be cleared of all data

For the table, you could use this: