# Deleting a space-agnostic exception container

**URL:** <https://discuss.elastic.co/t/deleting-a-space-agnostic-exception-container/269640>\
**Category:** Elastic Security\
**Created:** [April 8, 2021, 7:47pm UTC](https://discuss.elastic.co/t/deleting-a-space-agnostic-exception-container/269640 "2021-04-08T19:47:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gplourde](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@gplourde](https://discuss.elastic.co/u/gplourde)\
**Post date:** [April 8, 2021, 7:47pm UTC](https://discuss.elastic.co/t/deleting-a-space-agnostic-exception-container/269640/1 "2021-04-08T19:47:07Z")

</div>

How do you delete an exception container that is space agnostic?  
`"namespace_type": "agnostic"`

If I try to delete it using the Exceptions API I get an error stating the list does not exist.

```auto
    {
      "message": "exception list list_id: \"my-exception-container\" does not exist",
      "status_code": 404
    }

```

---

<div class="post-metadata">

**Author:** ![gplourde](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@gplourde](https://discuss.elastic.co/u/gplourde)\
**Post date:** [April 9, 2021, 12:27pm UTC](https://discuss.elastic.co/t/deleting-a-space-agnostic-exception-container/269640/2 "2021-04-09T12:27:07Z")

</div>

Found the solution in the **Exceptions API** documentation for creating exception containers (namespace\_type=agnostic).

`DELETE <kibana host>:<port>/api/exception_lists?namespace_type=agnostic&list_id=<list_id>`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 7, 2021, 12:27pm UTC](https://discuss.elastic.co/t/deleting-a-space-agnostic-exception-container/269640/3 "2021-05-07T12:27:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
