C# Get list with a startkey

An other way is to get the list of keys by a view to delete it after. I did it on a projet. I work fine.