Hi, Is there a way to delete any documents in a collection by a query (like listDocuments) ?
like this :
final documents = await databases.deleteDocuments( databaseId: dbId, collectionId: collectionId, queries: [ Query.equal('user', userId), ], );
hi nope, not possible at this momenent. you might need to make 2 request
first, to get all doc via query which match the conditon and then send another req for deleteing
I don't see any issue ( feature request ) for that, I suggest you create one
Recommended threads
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.