The actor made the promise in a meeting with Sikh religious leaders and others here.
The film was involved in a controversy after the All India Sikh Students Federation (AISSF) and other Sikh groups objected to certain dialogues and said that these were portraying Sikhs in poor light. The AISSF had pointed out some dialogues that had poked fun at Sikh community.
Devgn had earlier maintained that he knew the culture and tradition of Punjab, especially of Sikhs, and would not show anything in the film that would hurt their religious sentiments.
In a statement released by the Shiromani Gurdwara Parbandhak Committee (SGPC), the mini-parliament of Sikh religious affairs, it was stated that Ajay Devgn had agreed to omit the objectionable dialogues and scenes.
The statement said that Devgn had agreed to remove the objectionable dialogues and get a "clean chit" from the SGPC before releasing the film.
"I have explained my side to the SGPC committee. We will remove the objectionable portions, " Devgn told media here.
Devgn had specially come here from Hyderabad to meet a five member SGPC committee set up to look into the issue. AISSF president, Karnail Singh Peermohammed, had complained to the Akal Takht, the highest temporal seat of Sikh religion, and the SGPC, against the "anti-Sikh" dialogues.
Punjab cabinet minister Bikram Singh Majithia, who is the brother-in-law of Deputy Chief Minister and Shiromani Akali Dal president Sukhbir Singh Badal, was present at the meeting and the subsequent press conference addressed by Devgn.
The actor told the SGPC sub-committee that his family came from Punjab and he knew the culture of the state and would not do anything to hurt the sentiments of the Sikh community.