Delete unnecessary pages