
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
- [SOLVED] Row with requested ID doesn't e...
``` async function test() { try { const input = {} const extracted = Object.values(input).map(item => ({ $id: item.postId, ...
- no. of rows selection
give option to select no. of rows to list per page
- 1.7.2 Node-appwrite createDocuments from...
Am I correct in my testing that functions with document creation event, wont trigger on calling createDocuments from within a function.
