Move all items from the table

I am using a data list viewer and it writes the data to a table. How can I move all the items to another table after using the button. I don’t want to do this one at a time and select the item to be moved, I want all items to be moved. Any tips?