def delete(self): """ Delete the item from disc and the library model. :rtype: None """ studiolibrary.removePath(self.path()) if self.library(): self.library().removePath(self.path()) self.deleted.emit(self)
def delete(self): """ Delete the item from disc and the database. :rtype: None """ path = self.path() studiolibrary.removePath(path) if self.database(): self.database().delete(path) if self.libraryWidget(): self.libraryWidget().refresh()
def delete(self, needSync=True): """ Delete the item from disc and the library model. :rtype: None """ studiolibrary.removePath(self.path()) if needSync: if self.libraryWindow(): self.libraryWindow().sync() elif self.library(): self.library().sync() self.deleted.emit(self)
def reset(): """Remove and reset the item settings.""" global _settings _settings = None studiolibrary.removePath(path())
def resetSettings(): """Remove and reset the item settings.""" global _settings _settings = None studiolibrary.removePath(SETTINGS_PATH)