As long has you dont have any WHERE clause it is simple remove in loop.
If you have where clause it will do need to do fetch and remove.
NOTE: bucket.query() first need to send to to n1ql node and which need to remove from data nodes It is 2 hops operations.