'Remove and prune imported paths.'

def cleanup(self, copy=False, delete=False, move=False):

    if self.skip:
        return
    items = self.imported_items()
    if (copy and delete):
        new_paths = [os.path.realpath(item.path) for item in items]
        for old_path in self.old_paths:
            if (old_path not in new_paths):
                util.remove(syspath(old_path), False)
                self.prune(old_path)
    elif move:
        for old_path in self.old_paths:
            self.prune(old_path)
