# What are the steps to remove namespace permanently

**URL:** <https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010>\
**Category:** General Discussion\
**Tags:** deletion\
**Created:** [March 31, 2017, 4:18am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010 "2017-03-31T04:18:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chanaka\_Liyanarachch](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@Chanaka\_Liyanarachch](https://discuss.aerospike.com/u/Chanaka_Liyanarachch)\
**Post date:** [March 31, 2017, 4:18am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010/1 "2017-03-31T04:18:44Z")

</div>

What are the steps to remove namespace permanently ?

---

<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:** [March 31, 2017, 4:50am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010/2 "2017-03-31T04:50:17Z")

</div>

Presently requires a cluster restart.

---

<div class="post-metadata">

**Author:** ![Chanaka\_Liyanarachch](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@Chanaka\_Liyanarachch](https://discuss.aerospike.com/u/Chanaka_Liyanarachch)\
**Post date:** [March 31, 2017, 5:04am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010/3 "2017-03-31T05:04:48Z")

</div>

here are the steps that i have followed,

1.Stop the Aerospike service. 2. remove the all sets one by one using set-delete command. 3. Remove data file. 4. Start the Aerospike service.

But still i can see deleted sets in namespace (Aql\> show sets) please list the steps to remove namespace with data.

thank you

---

<div class="post-metadata">

**Author:** ![shakthimaan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/shakthimaan/32/714_2.png) [@shakthimaan](https://discuss.aerospike.com/u/shakthimaan)\
**Post date:** [March 31, 2017, 9:59am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010/4 "2017-03-31T09:59:19Z")

</div>

1. How many nodes do you have in the cluster, and what is your replication factor?
2. How did you remove the sets after stopping the Aerospike service?

---

<div class="post-metadata">

**Author:** ![Chanaka\_Liyanarachch](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@Chanaka\_Liyanarachch](https://discuss.aerospike.com/u/Chanaka_Liyanarachch)\
**Post date:** [April 1, 2017, 2:43am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010/5 "2017-04-01T02:43:37Z")

</div>

Actually first step was 1. Stop writing & 4. Restart the cluster

I have 4 nodes & RF -2

---

<div class="post-metadata">

**Author:** ![shakthimaan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/shakthimaan/32/714_2.png) [@shakthimaan](https://discuss.aerospike.com/u/shakthimaan)\
**Post date:** [April 1, 2017, 3:18am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010/6 "2017-04-01T03:18:19Z")

</div>

Please refer the following:

[Remove Namespace: Removing Namespace](https://discuss.aerospike.com/t/remove-namespace-removing-namespace/723)

---

<div class="post-metadata">

**Author:** ![Chanaka\_Liyanarachch](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@Chanaka\_Liyanarachch](https://discuss.aerospike.com/u/Chanaka_Liyanarachch)\
**Post date:** [April 1, 2017, 3:21am UTC](https://discuss.aerospike.com/t/what-are-the-steps-to-remove-namespace-permanently/4010/7 "2017-04-01T03:21:39Z")

</div>

Thank you very much.
