https://learn.microsoft.com/en-us/windows/win32/api/commctrl/nf-commctrl-listview_deleteallitems?redirectedfrom=MSDN
ListView_DeleteAllItems macro (commctrl.h) - Win32 apps | Microsoft Learn
Removes all items from a list-view control. You can use this macro or send the LVM_DELETEALLITEMS message explicitly.
listviewmacrohappsmicrosoft