code: def remove_profile(self):
          
          profile_name = self.profile_combo.currentText()
          # noinspection PyTypeChecker
          button_selected = QMessageBox.warning(
              None,
              'Remove Profile',
              self.tr('Remove %s.') % profile_name,
              QMessageBox.Ok,
              QMessageBox.Cancel
          )
          if button_selected == QMessageBox.Ok:
              self.profile_combo.removeItem(
                  self.profile_combo.currentIndex()
              )
              self.minimum_needs.remove_profile(profile_name)
              self.select_profile(self.profile_combo.currentIndex())
docs: Remove the current profile.
  
          Make sure the user is sure.