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