Bali add purge functionality