US President Barack Obama on Wednesday accepted the resignation of the top NATO commander in Afghanistan, General Stanley McChrystal, over a magazine article that portrayed him as dismissive of senior US officials for their concerns about the ongoing war effort, DPA reported.