Fix operation delete to allow clearing of elements