Is there an easy way to delete a complete set of Vespa documents?

Playing with Yahoo vespa.ai , I am now at the point where I have a search definition that I am happy with, but still, there are a bunch of stored test documents for garbage.

Is there an easy way to remove / clean / delete all of them at once, ala SQL DROP TABLEor DELETE FROM X?

The only place I found at this point was when the deletion of documents is clearly indicated on the Document JSON page . As far as I understand, this requires deleting documents one by one, which is good, but it becomes a little cumbersome when you just play.

I tried uninstalling the application through the Deploy API using the default tenant, but the data still exists when issuing search queries.

Did I miss something? or is it design?

+6
source share
1 answer

There is no API for this, but a command line tool vespa-remove-indexcan help you. That is, drop everything:

$ vespa-stop-services
$ vespa-remove-index
$ vespa-start-services

You can also play with garbage collection for this, but I would not go this way unless you can use vespa-remove-index.

+7
source

All Articles