---
schema_version: "1"
id: b84b8c639fca064b24228f932359e500660d969e05d97a6bdb70d15d9dc53e82
title: Delete Records Using sObject Rows by External ID
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/resources-sobject-upsert-delete.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-upsert-delete.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4fb36691a7d48ea1e8d98686dbcecfe1b30fbe072fd15f8e715520570b0d7de8
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# Delete Records Using sObject Rows by External ID

Deletes a record based on the value of the specified external ID field.

**note:** For security reasons, some Top Level Domains (TLD) can conflict with certain file format extensions. Adjust your implementation to work around such cases.

For example, using an email address, such as `example@email.inc`, as the External ID returns a “404 not found” error.

There are several workarounds to handle conflicting TLDs.

-   Use a different External ID field.
-   Create a new External ID field that is the same as the email field and replace the "." with an "\_" to handle this case.
-   Run a query for emails ending in ".inc" to retrieve the record ID and use that for the upsert request.
-   Use SOAP API instead of REST API for upsert requests.
-   Accept the email as a query parameter instead of a path parameter by creating a custom Apex REST API. Use Apex to perform the upsert request.

## Syntax

**URI:** `/services/data/vXX.X/sobjects/sObject/fieldName/fieldValue`

**Formats:** JSON, XML

**HTTP Method:** DELETE

**Authentication:** `Authorization: Bearer token`

**Parameters:** None

**See Also**  


-   [Object Reference for the Salesforce Platform](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/)

