'Removes the item. If `delete`, then the associated file is
removed from disk. If `with_album`, then the item\'s album (if
any) is removed if it the item was the last in the album.'

def remove(self, delete=False, with_album=True):

    super(Item, self).remove()
    if with_album:
        album = self.get_album()
        if (album and (not album.items())):
            album.remove(delete, False)
    plugins.send('item_removed', item=self)
    if delete:
        util.remove(self.path)
        util.prune_dirs(os.path.dirname(self.path), self._db.directory)
    self._db._memotable = {}
