'Removes a bookmark from the bookmarks list'

def delete_bookmark(self):

    item = self.selected_item()
    if (not item):
        return
    if (self.style == BOOKMARKS):
        cmd = cmds.RemoveBookmark
    elif (self.style == RECENT_REPOS):
        cmd = cmds.RemoveRecent
    else:
        return
    (ok, status, out, err) = cmds.do(cmd, self.settings, item.path, item.name, icon=icons.discard())
    if ok:
        self.refresh()
