maton salesforce record delete
maton salesforce record delete <id> [<id>...] [flags]
Delete a single record (DELETE /sobjects/{type}/{id}).
When more than one ID is provided, the request is dispatched in one call to /composite/sobjects?ids=… — up to 200 IDs. Each ID encodes its own sObject type, so –type is ignored in batch mode. Set –all-or-none to roll back the whole batch if any delete fails.
Options
-
--all-or-none - With multiple IDs: roll back the entire batch if any delete fails
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--dry-run - Print the request that would be sent without executing it
-q,--jq <expression>- Filter JSON output using a jq expression
-
--json - Output raw JSON
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-t,--template <string>- Format JSON output using a Go template; see "maton help formatting"
-
--type <string> - sObject type (required for single delete; ignored with multiple IDs)
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton salesforce record delete 0035g00000XYZ --type Contact
$ maton salesforce record delete 0035g00000A 0035g00000B 0035g00000C
$ maton salesforce record delete 0035g00000A 0035g00000B --all-or-none