Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
RFC 0055: menus that change
RFC 0056: the framework's own words
RFC 0057: rata upgrade
RFC 0058: @elyra/charts
RFC 0059: all of WireCharts
RFC 0060: exporting a chart
RFC 0061: zoom
RFC 0062: printing
RFC 0063: linked charts
RFC 0064: report pages
RFC 0065: marks
RFC 0066: taking a table out
RFC 0067: totals
RFC 0068: columns the user picks
RFC 0069: filters
RFC 0070: saved views
RFC 0071: lists over Laravel
RFC 0072: targets
RFC 0073: every row out
RFC 0074: grouped rows
RFC 0075: pinned columns
RFC 0076: views on the server
RFC 0077: every match selected
RFC 0078: editing in the table
RFC 0079: many cells at once
RFC 0080: a value for the selected rows
RFC 0081: a new row in the table
RFC 0082: a related record in a cell
RFC 0083: a filter by a related record
RFC 0084: one write for many rows
RFC 0085: the keys shown
RFC 0086: many rows in Laravel
RFC 0087: many rows deleted
RFC 0088: the trash
Release notes
Changelog
Elyra
RFC 0087 — Many rows deleted: the selection's Delete, asked once, sent in chunks

RFC 0087 — Many rows deleted: the selection's Delete, asked once, sent in chunks

Status: implemented (2026-11-30) · Target: 0.66.0 · builds on RFC 0077, RFC 0084 and RFC 0086 · see Decisions

Summary

"Delete the 340 drafts." The user filters, selects every match (RFC 0077), and then writes a bulk action: a button, a confirm, a loop over the ids calling _destroy one at a time, a toast, the selection cleared. Every app writes it, and over a backend it's 340 requests. RFCs 0084 and 0086 did this for setting a column; this RFC does it for deleting.

<Table page={list} bind:query select every={...} ondeletemany={(ids) => api.invoices_destroy_many(ids)} />
  • Delete in the selection bar, with ondeletemany(ids): asked once ("Delete 340 invoices? This can't be undone."), then sent in chunks of 500, with RFC 0079's progress and Cancel.
  • What's left: rows the command refuses (failed) stay selected and are said; the deleted ones leave the selection and the list.
  • make:resource writes {p}_destroy_many(ids) (each row's ability, soft deletes as _destroy has them, one statement), and over a backend DELETE /api/{p} with { ids }, answered by the package's elyraDestroyMany.

Motivation

  • The second bulk action every list has. After "set a column" (RFC 0080), it's "delete these". Every app writes the same snippet.
  • A loop of single deletes is slow and half-done. 340 requests over a backend; a failure halfway leaves the user guessing which went.
  • The pieces exist: the selection with every match (RFC 0077), the chunks, progress and Cancel (RFC 0084), the package's per-row policy answer (RFC 0086).

Current state (0.66)

  • The selection bar shows the count, Select all N that match, Set (RFC 0080), the app's bulk(selected, clear) and Clear.
  • make:resource writes {p}_destroy(id) (soft when the model has soft_deletes), and a row's Delete button with a confirm.
  • {p}_update_many and elyraUpdateMany answer { updated, failed } (RFCs 0084, 0086).

Design

In the table

ondeletemany?: (ids: Key[]) => Promise<{ deleted?: number; failed?: Record<string, string> } | void>
  • The button: Delete (danger) in the selection bar, after Set, when ondeletemany is given and something is selected. A deletable(row) (optional) leaves out rows that can't be deleted, as editable does; they're counted in the question.
  • Asked once: confirm with the count and the list's name ("Delete 340 invoices? This can't be undone." — or, with softDeletes, "They can be restored."), danger.
  • Sent: 500 keys a call, one call at a time; past 20 rows the progress ("Deleting… 500 of 2,340") with Cancel between calls.
  • After: the deleted keys leave the selection, and the rows leave a plain array's view at once (a live page re-runs); failed keys stay selected, a toast says how many and the first reason. The announcement says "Deleted 338 invoices. 2 couldn't be deleted."
  • No undo in the table: a delete isn't a step (RFC 0079's history stays as it was, without the deleted rows' cells).

make:resource

  • {p}_destroy_many(ctx, ids: Vec<key>) -> Result<{Model}DestroyMany> with the delete ability; each row found (a missing one in failed), then one DELETE … WHERE id IN (…) (or the soft delete's UPDATE), {Model}Deleted dispatched for each; answers { deleted, failed }.
  • Over a backend: DELETE {path} with { ids }; the hint prints Route::delete('{p}', [Controller::class, 'destroyMany']) and the method with elyraDestroyMany.
  • The list with --view gets ondeletemany (the selection's Delete) where it has select; its bulk keeps the app's own.

elyraDestroyMany in the package

->elyraDestroyMany($request, ['ability' => 'delete', 'max' => 500]): ids (at most max), each model through the query and its policy, the ones that pass deleted in one transaction (each delete(), so soft deletes, events and observers work), answered { deleted, failed }.

Words

deleteSelected, deleteAsk(count, name), deleteAskSoft(count, name), deleting(done, total), deletingLabel, deletedSome(done, failed), in words.js and en/nb.

Implementation plan

  1. ui: Delete in the selection bar, ondeletemany, deletable, the question, the chunks with progress and Cancel, the selection and rows after, the words.
  2. ratatosk: {p}_destroy_many (local and backend), {Model}DestroyMany, the hint, the list's ondeletemany; tests and the smoke.
  3. The Laravel package: elyraDestroyMany; the test app's route and a delete policy; framework/tests/laravel_destroy_many.rs in the Laravel job.
  4. Docs: table.md, resources.md, backend.md, the skills, CHANGELOG.

Open questions

  1. Asked once, or typed ("type DELETE")? Recommendation: asked once, with the count and whether it can be restored. Typing is for what can't be undone at a scale the app decides; an app can wrap ondeletemany in its own question.
  2. The rows a user may not delete: hidden from the count, or counted? Recommendation: counted in the question ("Delete 338 invoices? 2 can't be deleted.") with deletable, and the server's failed for the rest. The user sees what will happen before it does.
  3. Undo through restore, for soft deletes? Recommendation: not in this RFC. A restore command is its own ({p}_restore_many), and the table's history is for values, not rows.

Decisions

Accepted 2026-11-30, with the open questions' recommendations:

  1. Asked once, with the count and whether the rows can be restored.
  2. Rows that can't be deleted are counted in the question (deletable), and the server's failed says the rest.
  3. No undo or restore in this RFC.

As built

As designed, with these differences:

  • The question doesn't name the list ("Delete 340 rows?"): a table has a label, not a plural noun to count with.
  • make:resource's lists don't get ondeletemany: they have no select. The command is there ({p}_destroy_many, local and over a backend); a list the app gives select passes it as ondeletemany={(ids) => api.x_destroy_many(ids)}.
  • A key selected that the table has no row for (a live page's selection, keys never seen) is sent too, and the server's failed says what became of it.
  • Tested against the test app the Laravel CI job builds: a DELETE /api/customers route, a CustomerPolicy::delete that refuses a locked customer and a user without customers.delete, and framework/tests/laravel_destroy_many.rs, a step of its own in the job.

Not in this RFC

  • Restoring soft-deleted rows, and a trash view.
  • Deleting with a typed confirmation.
  • Deleting rows and their children (cascade is the database's).

Alternatives considered

  • Leave it to bulk. What apps do today: the same snippet, slow over a backend, with no answer for a partial failure.
  • A loop of {p}_destroy in the table. No command to write, but a request per row and no transaction.