Simple script to purge main pages

Change-Id: I5fa2b5fa7f4a2445596cbbf850c807abd3242156