Fetching details from the dictionary...
ill will; malice; evil intent
悪気はなかったの、ごめんね。
I didn't mean any harm, I'm sorry.
子供は悪気があったわけじゃないから、許してあげましょう。
The child didn't mean any harm, so please forgive them.
彼は悪気なく、失礼なことを言っただけだ。
He just said something rude without any ill will.