
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
- My collection is not updating after csv ...
- How do I format an array in a CSV file t...
I want to import a CSV file to create a document on it on the AppWrite website. I have an attribute "name" of type String and "ingredients" which is of type St...
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
