Remove All Rows From A Collection

Input collection: myTrucks51

SerialYearMake Model
89432020FordF150
46232018ChevySilverado
23152019FordF150
54662020ChevyAvalanche


Output collection: mySolution51

SerialYearMake Model


Solution code:

//Create a collection
ClearCollect(myTrucks51,
{Serial: 8943, Year: 2020, Make: "Ford", Model: "F150"},
{Serial: 4623, Year: 2018, Make: "Chevy", Model: "Silverado" },
{Serial: 2315, Year: 2019, Make: "Ford", Model: "F150" },
{Serial: 5466, Year: 2020, Make: "Chevy",Model: "Avalanche"}
);

//Clear all rows code
ClearCollect(mySolution51, myTrucks51);
Clear(mySolution51);