Purging deleted documents from local db through API

Thanks, jens.

Is that the only way to purge documents by purging one by one? Like I explained above by having a view to get all deleted documents and then go through the list.

I was looking for some kind of automated way to purge all deleted documents at once.