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


#1

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.


#2

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.


#3

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 version v5.

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