Delete EDT relation using X++ in Ax 2012

Hi,

After the upgrade of Ax from 2009 to 2012 R3, EDTs were created using EDT Relation Migration tool. However, some EDTs were created with blank values. I wish to identify such EDTs and delete the relations which are blank using X++ code. Doing that manually will require a lot of effort.

If it is possible at Model Store, I am open for those suggestions too.

Thanks!

Delete EDT relation using X++ in Ax 2012