Cleaning up your environment before upgrade (SharePoint Server 2010)

Before you begin upgrading from Microsoft Office SharePoint Server 2007 to Microsoft SharePoint Server 2010, you should make sure that your environment is functioning in a healthy state and that you clean up any content that you do not have to upgrade. You can also take the time to remove or rearrange content so that you will have the structure that you want after you perform the upgrade.

https://technet.microsoft.com/en-us/library/ff382641.aspx