No, you cannot use a Selector in the same way with the Delete action in the AppSheet API as you do with the Find action.
Key Limitation
The AppSheet REST API does not support the Selector in Delete actions. While the Selector works perfectly in a Find action to retrieve rows that match a filter, the Delete action expects a direct list of keys (row IDs) to delete — not a selector expression.
How to Delete Multiple Rows via API
To delete multiple rows via the AppSheet API, follow these steps:
- Use a Find Action with Selector
Call the Find action first to retrieve all the keys (row identifiers) that match your conditions.
Example Request:
{
“Action”: “Find”,
“Properties”: {
“Selector”: “AND([Status] = "Inactive", [Category] = "Expired")”
},
“Rows”:
}
- Extract the Keys from the Find Response
From the result, get the list of row keys (usually the unique ID column values).
- Send a Delete Action with Row Keys
Use the Delete action, but pass the Rows array with only the Key values of each row you want to delete.
Example Request:
{
“Action”: “Delete”,
“Rows”: [
{ “Key”: “row_key_1” },
{ “Key”: “row_key_2” },
{ “Key”: “row_key_3” }
]
}
Note: Replace “Key” with the actual name of your key column if it differs.
Summary
Feature Supported in Find Supported in Delete
Selector
Yes
No
Passing row keys
Not needed
Required
Pro Tip
You can automate this with a script (e.g., in Apps Script or your backend system) that:
-
Calls Find
-
Parses the response
-
Sends the Delete request using the returned keys.
Let me know if you’d like an example script for that flow.