add script for pruning of partitions