Skip to content
Back

Bulk delete failed with 401

  • 0
  • Databases
  • Web
  • Cloud
Tam Mai
15 Dec, 2025, 12:07
  • I created a transaction to bulk delete rows in a table has done equal true follow documentation. But when run, it returns 401 unauthorized error as screenshot below.
  • I can delete a single record successfully.
  • Table permissions is users can create, row security is a user can read, update, delete his/her own rows.
TL;DR
Developers are getting a 401 unauthorized error when attempting a bulk delete operation in Appwrite due to permission issues. One developer suggests using loops for bulk delete, despite being slower. The root cause of the error is still unknown.
Devika
15 Dec, 2025, 12:15

Hi! You can use loops for performing the bulk delete operation.

Devika
15 Dec, 2025, 12:15

The only drawback is that it's too slow for larger no. of documents.

Tam Mai
15 Dec, 2025, 12:19

Yes, thank you! I think it's will be the last resort option. But I still prefer the transactions way and just curious what is the root cause of this error 😀 .

Devika
15 Dec, 2025, 12:24

Can you please share how are you creating the Appwrite client instance?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more