---
title: "Comment by Abhinav Sharma on \"The delete that didn't delete\" | Hashnode"
description: "The green test detail is the real lesson: it passed because it never created the state that triggers the bug. Testing delete against every place the data actual"
url: "https://hashnode.com/posts/the-delete-that-didnt-delete/6ad508739ca15024b6915def/comment/6ad76743389aa050b9333d46"
---

[Discussion](https://hashnode.com/posts/the-delete-that-didnt-delete/6ad508739ca15024b6915def)

Comment [The delete that didn't delete](https://hashnode.com/posts/the-delete-that-didnt-delete/6ad508739ca15024b6915def)

[Abhinav Sharma](https://hashnode.com/@abhinavs1920)

[Oct 20](https://hashnode.com/posts/the-delete-that-didnt-delete/6ad508739ca15024b6915def/comment/6ad76743389aa050b9333d46)

The green test detail is the real lesson: it passed because it never created the state that triggers the bug. Testing delete against every place the data actually lives (log, checkpoint, snapshot) is the part that matters.

[Brock Claussen](https://hashnode.com/@claus)

[Oct 20](https://hashnode.com/posts/the-delete-that-didnt-delete/6ad508739ca15024b6915def/comment/6ad76743389aa050b9333d46#reply-6ad7c4a98cbe573881591b67)

Thanks, that's exactly the part I keep relearning. A test only proves something if it reaches the state that causes the failure, and this one never did: the document lived only in the log, so one compact always cleaned it up. Now the purge test first proves the old way _does_ leave the data behind.
