Skip to content
Back

Bulk operations on tables with relations

  • 0
  • Databases
  • Self Hosted
apperside
9 Jan, 2026, 10:53

Hi, if I try to perform a bulk delete on a table with relations, I get this:

`289 | if (((_b = response.headers.get("content-type")) == null ? void 0 : _b.includes("application/json")) || responseType === "arrayBuffer") { 290 | responseText = JSON.stringify(data); 291 | } else { 292 | responseText = data == null ? void 0 : data.message; 293 | } 294 | throw new AppwriteException(data == null ? void 0 : data.message, response.status, data == null ? void 0 : data.type, responseText); ^ AppwriteException: Bulk delete is not supported for tablesDB with relationship attributes code: 400, type: "general_bad_request", response: "{message:Bulk delete is not supported for tablesDB with relationship attributes,code:400,type:general_bad_request,version:1.8.0}",

TypeScript
  at call (/Users/simone/dev/polybank/node_modules/.bun/node-appwrite@20.2.1/node_modules/node-appwrite/dist/client.mjs:294:13)`

This is the code I am tryng to run

`const response = await tables.deleteRows({ databaseId: process.env.APPWRITE_DATABASE_ID!, tableId: 'categories', queries: [Query.equal('is_default', false)], });

console.log(response); ` Am i doing something wrong or is it the way it is supposed to work?

TL;DR
Developers are encountering an AppwriteException when trying to perform a bulk delete on a table with relations. The error states that bulk delete is not supported for tables with relationship attributes. This behavior is intended as per the design.
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