The question is general, but the obvious context is the fact that Gaza is governed (and presumably, if not for US/Israel support to Fatah, entire Palestinian territory would be governed) by Hamas, whose official goal is destruction of Israel (e.g. see [1] and [2] and [3]).
The UN seems strongly in favor of granting Palestine the statehood - and when that happens, it would be a UN member state whose official goal is destruction of Israel.
Is there anything in UN charter or laws prohibiting a country to seek a destruction of another country?
If there is, what specifically are the measures within UN's power to counteract such a situation? Strongly worded statement? Exclusion from UN? Nothing?