Skip to content
Back

Cannot use createdBefore query on bulk delete

  • 0
  • Self Hosted
  • Databases
darkmess
28 Oct, 2025, 18:06

sdk: dart version: 19.2.1

TypeScript
      .subtract(const Duration(days: 1))
      .toIso8601String();

  await database.deleteRows(
    databaseId: Platform.environment['DATABASE_ID']!,
    tableId: Platform.environment['TABLE_ID']!,
    queries: [Query.createdBefore(timestamp)],
  );```

This code fails with: AppwriteException: general_query_invalid, Invalid query method: createdBefore (400)
TL;DR
Developers are unable to use the createdBefore query for bulk delete operations in the Dart SDK version 19.2.1. The code snippet provided throws an error: AppwriteException: general_query_invalid, Invalid query method: createdBefore (400).
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