Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I figured out the culprit , it was the name of the function. deleteAcc <---- because var action2 = component.get("c.deleteAcc"); <--- is confused on which one he will call. I renamed it as deleteAcc2