[IMPLEMENTED] CLI method or API method to purge all records inside an entity


We are using an application in the cloud against which we run a selection of integration tests. It all works nicely but the problem we are having is purging the state between the test runs. Some tests require that no records exists within a selected schema but it is populated by another schema. Is there an easy way we could delete all documents within an entity? Either via the API or the cli?


You mean all documents within a schema?

There is nothing, but you also create temporary test apps.

Hello Sebastian,

I understand that and yes, we do create temp test apps but we use the same app for all the tests. I guess this means that there is no easy way to dump the records other than do it one by one?

The faster approach would be to use the batch endpoint, but you need to have the IDs first.

This topic was automatically closed after 2 days. New replies are no longer allowed.