'Delete an item from some category.'

def do_tag_item_delete(self, category, item_id, orig_name, restrict_to_book_ids=None):

    if restrict_to_book_ids:
        msg = (_(u'%s    will    be    deleted    from    books    in    the    virtual    library.    Are    you    sure?') % orig_name)
    else:
        msg = (_(u'%s    will    be    deleted    from    all    books.    Are    you    sure?') % orig_name)
    if (not question_dialog(self.tags_view, title=_(u'Delete    item'), msg=(u'<p>' + msg), skip_dialog_name=u'tag_item_delete', skip_dialog_msg=_(u'Show    this    confirmation    again'))):
        return
    self.current_db.new_api.remove_items(category, (item_id,), restrict_to_book_ids=restrict_to_book_ids)
    if (restrict_to_book_ids is None):
        m = self.tags_view.model()
        m.delete_item_from_all_user_categories(orig_name, category)
    self.do_tag_item_renamed()
    self.tags_view.recount()
