Bug 984907 - Clean up json file after event removal

https://bugzilla.mozilla.org/show_bug.cgi?id=984907