# How do I delete the entire snapshot on CLI?

**URL:** <https://kopia.discourse.group/t/how-do-i-delete-the-entire-snapshot-on-cli/474>\
**Category:** Support\
**Created:** [June 3, 2021, 1:44pm UTC](https://kopia.discourse.group/t/how-do-i-delete-the-entire-snapshot-on-cli/474 "2021-06-03T13:44:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![itdoginfo](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/itdoginfo/32/164_2.png) [@itdoginfo](https://kopia.discourse.group/u/itdoginfo)\
**Post date:** [June 3, 2021, 1:44pm UTC](https://kopia.discourse.group/t/how-do-i-delete-the-entire-snapshot-on-cli/474/1 "2021-06-03T13:44:02Z")

</div>

For example, I have:

```auto
root@kopia-test:~# kopia snapshot list 
root@kopia-test:/root/example
  2021-05-19 15:54:53 CEST kc4df8c3d4f3ba311c3aca43909b82c7d 62.9 KB drwxr-xr-x files:99 dirs:79 (latest-4)
  + 2 identical snapshots until 2021-05-21 17:31:47 CEST
  2021-05-24 15:13:57 CEST kaa095063492905c4a13502c87d1df52a 1.2 GB drwxr-xr-x files:99 dirs:79 (latest-1,annual-1,monthly-1,weekly-1,daily-1,hourly-1)

```

I need to delete completely “root@kopia-test:/root/example”

From man

> Args:  
> Snapshot ID or root object ID to be deleted

I cannot understand what is “root object ID”?

I guess it is “root@kopia-test:/root/example”

```auto
root@kopia-test:~# kopia snapshot delete root@kopia-test:/root/example --delete
ERROR: error deleting snapshots by root ID root@kopia-test:/root/example: no snapshots matched root@kopia-test:/root/example

```

I also tried to get “root object ID” using flag “-m”, but have not discovered this.

```auto
root@kopia-test:~# kopia --version
0.8.3 build: e258319c9564130cbb83bd94a822267af00b79d1 from: kopia/kopia

```

---

<div class="post-metadata">

**Author:** ![jkowalski](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/jkowalski/32/3_2.png) [@jkowalski](https://kopia.discourse.group/u/jkowalski)\
**Post date:** [June 4, 2021, 2:33am UTC](https://kopia.discourse.group/t/how-do-i-delete-the-entire-snapshot-on-cli/474/2 "2021-06-04T02:33:37Z")

</div>

Currently you need to delete all `k<hash>` objects - when they are gone, the snapshot source will disappear. Deleting all snapshots for a given source would be a nice feature to add.

---

<div class="post-metadata">

**Author:** ![itdoginfo](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/itdoginfo/32/164_2.png) [@itdoginfo](https://kopia.discourse.group/u/itdoginfo)\
**Post date:** [June 15, 2021, 11:03am UTC](https://kopia.discourse.group/t/how-do-i-delete-the-entire-snapshot-on-cli/474/3 "2021-06-15T11:03:13Z")

</div>

Thanks for the clarification and for your product!
