def remove(token): t = SlackToken.get(token) if t: t.delete() print('Token removed!') else: print('No such token!')