Deleting Diagonals from a mesh automatically?
You might be looking for limited dissolve! All you have to do is select your mesh in edit mode and search for it in the space search bar. 

Before:


After: