This means you strongly decide not to do something. It can also mean you must not do something. Or, it can mean something is impossible to imagine.
に。
I swore to myself that I would never tell this secret to anyone.
、。
Behavior unbecoming of a politician leads to losing the public's trust.
。
I shall never repeat that mistake again.
、。
Even if my body is destroyed, I will not hand over this castle.
、。
It is absolutely unthinkable that he would betray a friend.