Upgrade clean script