DRYer flushAll method
Make flush actions actually remove entries from JSON