# Is there a way to easily delete a namespace (remove from asp)?

**URL:** <https://discuss.aerospike.com/t/is-there-a-way-to-easily-delete-a-namespace-remove-from-asp/3454>\
**Category:** Deletion\
**Created:** [September 27, 2016, 2:56pm UTC](https://discuss.aerospike.com/t/is-there-a-way-to-easily-delete-a-namespace-remove-from-asp/3454 "2016-09-27T14:56:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfc](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@dfc](https://discuss.aerospike.com/u/dfc)\
**Post date:** [September 27, 2016, 2:56pm UTC](https://discuss.aerospike.com/t/is-there-a-way-to-easily-delete-a-namespace-remove-from-asp/3454/1 "2016-09-27T14:56:37Z")

</div>

Is there a cli or aql command to delete en entire namespace ? About changing its name ?

I guess I could remove this namespace from the config file, shut down all the servers and restart them… but I’m wondering if there is a programmatic way to do it.

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [September 27, 2016, 3:44pm UTC](https://discuss.aerospike.com/t/is-there-a-way-to-easily-delete-a-namespace-remove-from-asp/3454/2 "2016-09-27T15:44:43Z")

</div>

No, there isn’t a way to add/remove a namespace from an API. Namespaces define a longterm storage strategy which typically requires a fair bit of planning.

Sets, however, can be added on the fly but deleting a sets data is currently a bit more involved, and currently there isn’t an easy way to purge the set structure itself.

---

<div class="post-metadata">

**Author:** ![anushree](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@anushree](https://discuss.aerospike.com/u/anushree)\
**Post date:** [June 7, 2017, 9:56pm UTC](https://discuss.aerospike.com/t/is-there-a-way-to-easily-delete-a-namespace-remove-from-asp/3454/3 "2017-06-07T21:56:12Z")

</div>

The ability to add/remove namespaces with rolling restart of the cluster is added starting server version 3.13.0.1 for both Community and Enterprise versions on [paxos-protocol](http://www.aerospike.com/docs/reference/configuration#paxos-protocol) version v5.

[AER-3485] - (KVS) Support adding/removing namespaces with rolling restart. [http://www.aerospike.com/download/server/notes.html#3.13.0.1](http://www.aerospike.com/download/server/notes.html#3.13.0.1)
