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.
There’s no built-in mechanism to purge deleted documents. But it just takes a couple of lines to do it yourself. If you don’t want to create a view, you can just run an all-docs query, with the mode that includes deleted documents.