pyqt5 qlistwidget remove all items code example Example: how to remove all items in a Qlistwidget in pyqt5 # use clear() function my_list_widget.clear()