Issue #8224 by turegjorup: Fixed delete event not correctly deleting data in ES