Fix deletion of variates

Reviewer: Daniel Villafuerte (post-commit)

Issue: GCP-9667