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
- Is it possible to create and update with...
Desde la comunidad latina. Es posible ejecutar un CREATE y un UPDATE , en la misma transacción? mi objetivo es que el ID creado, se coloque en el array del upd...
- I want my app data
Can anyone help me with this ?
- Import CSV via API (User Not Authorized)
I'm trying to import database data via CSV via API, however getting "The current user is not authorized to perform the requested action." after the API key has ...