Where are you located. You have to check your local laws. Here in PA if we drive under 5000 miles a year we do not have to the emissions testing only visual inspection.
I have deleted my egr by just ordering headers without the egr connections. That simple, you just remove all the egr. I then disabled it in the program including alrms with HP tuners.
For the o2s sensors you can delete the rears in the program so they do not throw a code. You will need to keep the front o2s though.
Hope this helps