code: def deleteProfile(self, profile):
          
          profGroupName = self.profileGroupName(profile)
          logger.debug("Resetting profile settings: {}".format(profGroupName))
          settings = QtCore.QSettings()
          settings.remove(profGroupName)
docs: Removes a profile from the persistent settings