Search code examples
goaerospike

Aerospike Test Environment


I'm planning on stubbing out a namespace, but what is the current state of deleting a whole namespace? Would I have to list out all the keys that exists, and manually go through and delete them? If so, what API call would that be to list all sets, and then keys?


Solution

  • Check out the truncate-namespace command (run from within asadm to issue against all nodes):

    asinfo -v 'truncate-namespace:namespace=test;'

    In the Community Edition a restart would resurrect the truncated records (unless enough new updates have overwritten those records). The Enterprise Edition would make the truncation 'durable' and prevent any record to be resurrected upon any types of restart (cold or fast).