Added delete option, use basename for dest