Mickaël LTOriginal post
Rank 2: Process
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),
],
);
Summary
The user wants to know if it's possible to delete documents in a collection using a query. The response suggests that it is not currently possible and that the user would need to make two separate requests - one to query for the documents and another to delete them.