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
- Returned columns when Query.select is us...
Hello, I am noticing that whatever i put in Query.select, the returned data will always contain the following fields ` "total": 1, "rows": [ { ...
- Does appwrite supports increasing the va...
I am building a chat application where user message needs to increased on every row creation. For this is there any increament feature?
- Broken Appwrite can’t make functions nor...
Hii guys, I was having this issue with my locally hosted Appwrite, I can’t create functions ( both template and manual), I can’t make a custom domain ( like in ...