If a tuplet is not referenced anymore by any chord/rest, then simple delete it by "delete tuplet;".
score()->removeElement(tuplet) does nothing.