def zbw_mmDeleteConfirm(): if (cmds.text("mmTextConfirm", q=True, ex=True)): cmds.deleteUI("mmTextConfirm") cmds.deleteUI("mmConfirmSep")