---
title: "Comment by Paul Pham on \"An empty variable turned rm -rf and rsync --delete into \"delete /\". Coding agents did it three times this fall\" | Hashnode"
description: "The empty-variable case is a good reason to validate the resolved target before a delete runs."
url: "https://hashnode.com/posts/an-empty-variable-turned-rm-rf-and-rsync-delete-into-delete-coding-agents-did-it-three-times-this-fall/6af7b182b49b7925a30b819e/comment/6af814581c6072d0c7037ce9"
---

[Discussion](https://hashnode.com/posts/an-empty-variable-turned-rm-rf-and-rsync-delete-into-delete-coding-agents-did-it-three-times-this-fall/6af7b182b49b7925a30b819e)

Comment [An empty variable turned rm -rf and rsync --delete into "delete /". Coding agents did it three times this fall](https://hashnode.com/posts/an-empty-variable-turned-rm-rf-and-rsync-delete-into-delete-coding-agents-did-it-three-times-this-fall/6af7b182b49b7925a30b819e)

[Paul Pham](https://hashnode.com/@paulpham157)

[3d ago](https://hashnode.com/posts/an-empty-variable-turned-rm-rf-and-rsync-delete-into-delete-coding-agents-did-it-three-times-this-fall/6af7b182b49b7925a30b819e/comment/6af814581c6072d0c7037ce9)

The empty-variable case is a good reason to validate the resolved target before a delete runs.
