prune script