env: check and apply changes on delete/destroy