Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
You can set TMS to purge old data from the database under Admin Tools > TMS Server Maintenance. Similar topics have also been asked several times in the forums, below are just a few threads.