purge script bug

Change-Id: I7b93df58fdc0e5ac0576f7ae422dff7d7def015a
Merge "purge script bug" into production