title: How to define a package that uninstalls old code in CQ5?
body: <p>Has anybody been able to successfully use the Replace dependency filter in the CQ5 Package Manager to uninstall/delete old code? <a href="http://dev.day.com/docs/en/crx/current/how_to/package_manager.html" rel="nofollow">http://dev.day.com/docs/en/crx/current/how_to/package_manager.html</a></p>
  
  <p>I've recently restructured my directories and I'm trying to find an easy way to uninstall the old branches.</p>
  
  <p>In other words, I am currently working with:</p>
  
  <p>/apps/myproject/old_directory</p>
  
  <p>but want to transition to:</p>
  
  <p>/apps/myproject/new_directory</p>
  
  <p>Like I said, I tried setting the Replace Dependency Filter with the old package name. It appears to be working because it says "Replaces my_packages:oldPackage:1" which is a valid link. However, running the install does nothing to the pre-existing code base.</p>
  
  <p>I realize that I can just uninstall the original package manually, but this will be added to the Package Share, so I'd like to ensure that any current users can just install the upgrade without worrying about unused code.</p>
  
  <p>I'm currently using CQ 5.4</p>