To do so you need to provide full list of document ids in the couchdb (and there are no easy way to generate such list).