title: How to get dep ensure to remove unused Go files, dependencies or packages
body: <p>When adding new dependencies using <code>dep ensure -add &lt;package&gt;</code> I see <code>dep</code> adding the complete repository of the package, instead of just the parts I require.</p>
  
  <p>For example I added <a href="https://github.com/aws/aws-sdk-go" rel="nofollow noreferrer">aws-sdk-go</a> and <code>dep ensure</code> put 87MB of files into my vendors folder, even though I only use the AWS Secrets Manager service.</p>