Remove unused dependencies and content.