deleting old libraries before copying