added functionality to delete permanently or restore events