You're right, you will get deleted from Myspace for tampering with the advertisments and links. I had a friend who had a myspace for almost 5 years and was deleted because she used the code to hide all that junk too.
Just go through and erase one code at a time. Then after you remove one of them, preview profile. Repeat until you've found the right code.
Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content. Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.