Runtime creation/deletion of Sets


#1

Hi,

I understand Sets can be created at runtime (in our case the java client). Is deletion of a Set possible at runtime?

Thanks.


#2

Hi Joe99,

Yes, it is possible to delete a set at runtime sending the ‘asinfo’ command through the ‘Info’ command. But, its slightly tricky since you would need to make sure that you are not writing to that particular set, and also you would need to send the delete command to all of the nodes.

Link to the ‘Info’ API in Java: http://www.aerospike.com/apidocs/java/com/aerospike/client/Info.html

Here are more details on using ‘asinfo’: http://www.aerospike.com/docs/operations/manage/sets/#deleting-a-set-in-a-namespace

Deleting Sets discussed on our Labs Community page: http://www.aerospike.com/community/labs/deleting_sets_and_data.html