add drop partition function.