Team Foundation Server 2010 Attachments Cleaner
This sample project can be used instead of
Test Attachment Cleaner for Visual Studio Ultimate 2010 & Test Professional 2010. But seems it has unresolved bugs with server encoding (TF51005), so I decided to make my own. Hope this can help you.
This is command line tool with app.config. By default it has deletion critaria by test run creation date and attachments size, but it can be easily extended.