You are a soul , god is super soul. truth is no one does anything. its maya's act. but to rid off karm you must sacrifice all action to him. As far as doing ill karma is concerned , if from within you get a desire you submit that desire to god too. if you get a random bad thought , say god i submit this bad desire to you as well. when you get a good thought you do same. IF YOUR body does bad karma it will pay the price too. So you submit the bad karma and you submit the result of it too. If you steal , you submit that action , if you get punished you submit that result too. What you choose to do will automatically fall in line. Submitting bad action doesn't mean you will not get a bad result back .But the instruction is clear = submit ALL ACTION. SUBMIT all desire , submit all thought. Of course that inst easy but when you practice THE ONLY THOUGHT LEFT IN YOUR HEAD WILL BE TERA TERA TERA TU TU TU , YOUR (god's) YOUR YOURS YOU(god) YOU YOU . so no desire , no action , no thought. = mukti. Good desire good thought good action = GOOD REWARD but not mukti.
You can follow a prescribed path by an expert if you disagree with this one. But if you have read what i wrote, and next time you read any religious text , what i said will make sense to you slowly.
1) First of don't force yourself to rid the ill that pops randomly in your head,If you force and purge the bad thoughts will grow , BUT IF YOU SUBMIT THEM to lord ... then those bad thoughts Diminish . THAT IS How you self baptize your soul , by submitting bad thoughts for god to neutralize them for you. And you do same with good thoughts .
2) If you are already trapped in ill actions ..you can continue to submit them along with the fruit of that action. Slowly the Rasa ( the juice/ the taste) will dry out and you will feel quenched , without need arising again and again.
3) If the Degree of ill action is too intense then again you CAN submit them...however the result will still be intense .If you Murder someone and submit the action, and then get HUNG /electric chair/ Life imprisoned as reward or die. BUT Submit action regardless.
moral of the story : Most important thing is to submit the action and its fruit. What nature of deeds you choose will carry the rewards in the law of society / maya / worldly , if you do good and submit ..good will come back and you will be at ease with less struggle. If you do bad and submit , you will get bad rewards , And you will struggle and get pain.. just don't forget to submit
.