Salesforce · Arazzo Workflow

Salesforce Delete Record

Version 1.0.0

Delete an SObject record by id after confirming it exists.

1 workflow 1 source API 1 provider
View Spec View on GitHub Fortune 500Artificial IntelligenceAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSalesArazzoWorkflows

Provider

salesforce

Workflows

delete-record
Confirm a Salesforce SObject record exists, then delete it by id.
Reads the target record by SObject type and id to confirm it exists, then deletes it.
2 steps inputs: id, sobjectType outputs: deletedRecordId, statusCode
1
getRecord
Retrieve the record by SObject type and id to confirm it exists before deleting it.
2
deleteRecord
Delete the record by SObject type and id. Returns no body on success (HTTP 204).

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Salesforce Delete Record
  summary: Delete an SObject record by id after confirming it exists.
  description: >-
    Safely removes a Salesforce record by SObject type and id. The workflow
    first retrieves the record to confirm it exists, then issues the delete,
    which moves the record to the Recycle Bin (or permanently removes it for
    objects without soft delete) and returns no body on success. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: recordsApi
  url: ../openapi/salesforce-records-api-openapi.yml
  type: openapi
workflows:
- workflowId: delete-record
  summary: Confirm a Salesforce SObject record exists, then delete it by id.
  description: >-
    Reads the target record by SObject type and id to confirm it exists, then
    deletes it.
  inputs:
    type: object
    required:
    - sobjectType
    - id
    properties:
      sobjectType:
        type: string
        description: >-
          The API name of the Salesforce SObject type (e.g. Account, Contact,
          MyCustomObject__c).
      id:
        type: string
        description: The 15- or 18-character Salesforce record id to delete.
  steps:
  - stepId: getRecord
    description: >-
      Retrieve the record by SObject type and id to confirm it exists before
      deleting it.
    operationId: getRecord
    parameters:
    - name: sobjectType
      in: path
      value: $inputs.sobjectType
    - name: id
      in: path
      value: $inputs.id
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      record: $response.body
  - stepId: deleteRecord
    description: >-
      Delete the record by SObject type and id. Returns no body on success
      (HTTP 204).
    operationId: deleteRecord
    parameters:
    - name: sobjectType
      in: path
      value: $inputs.sobjectType
    - name: id
      in: path
      value: $inputs.id
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      statusCode: $statusCode
  outputs:
    deletedRecordId: $inputs.id
    statusCode: $steps.deleteRecord.outputs.statusCode

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/salesforce-delete-record-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.