> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tabs.com/_mcp/server.

# Delete ERP metadata

DELETE https://integrators.prod.api.tabsplatform.com/v3/erp-metadata
Content-Type: application/json

Removes specific metadata keys from the stored ERP metadata for a batch of entities of one type — customers (`CUSTOMER`), invoices (`INVOICE`), or invoice line items (`INVOICE_LINE_ITEM`). Only the keys you list are removed; other keys for the same entity and `erpSource` are left as-is, and the external id record itself is preserved. Scoped to the authenticated merchant. This clears only the value stored in Tabs — it does NOT blank the field in the ERP, because the sync skips empty/missing values, so a value already synced to the ERP stays put. Idempotent: removing a key that is already absent succeeds. One `entityType` per request.

Reference: https://docs.tabs.com/api-reference/erp-metadata/integrators-api-erp-metadata-controller-v-3-delete-erp-metadata

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Tabs External API
  version: 1.0.0
paths:
  /v3/erp-metadata:
    delete:
      operationId: integrators-api-erp-metadata-controller-v-3-delete-erp-metadata
      summary: Delete ERP metadata
      description: >-
        Removes specific metadata keys from the stored ERP metadata for a batch
        of entities of one type — customers (`CUSTOMER`), invoices (`INVOICE`),
        or invoice line items (`INVOICE_LINE_ITEM`). Only the keys you list are
        removed; other keys for the same entity and `erpSource` are left as-is,
        and the external id record itself is preserved. Scoped to the
        authenticated merchant. This clears only the value stored in Tabs — it
        does NOT blank the field in the ERP, because the sync skips
        empty/missing values, so a value already synced to the ERP stays put.
        Idempotent: removing a key that is already absent succeeds. One
        `entityType` per request.
      tags:
        - erpMetadata
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            Per-item result: `removedKeys` lists the requested keys that were
            present and removed, and `found` indicates whether a stored metadata
            record existed for that entity and ERP source.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ERP
                  Metadata_IntegratorsApiErpMetadataControllerV3_deleteErpMetadata_Response_200
        '400':
          description: Invalid request body.
          content:
            application/json:
              schema:
                description: Any type
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteErpMetadataDto'
servers:
  - url: https://integrators.prod.api.tabsplatform.com
    description: https://integrators.prod.api.tabsplatform.com
components:
  schemas:
    DeleteErpMetadataDtoEntityType:
      type: string
      enum:
        - CUSTOMER
        - INVOICE
        - INVOICE_LINE_ITEM
      description: >-
        The entity type for every item in this request. One request handles a
        single entity type.
      title: DeleteErpMetadataDtoEntityType
    DeleteErpMetadataItemDtoErpSource:
      type: string
      enum:
        - QUICKBOOKS
        - ORDERTIME
        - NETSUITE
        - SALESFORCE
        - HUBSPOT
        - BACKEND
        - AVALARA
        - ORUM
        - ANROK
        - STRIPE
        - RILLET
        - SAGE_INTACCT
        - SLACK
        - SPHERE
        - CAMPFIRE
      description: >-
        ERP source the metadata is stored under (e.g. NETSUITE).
        Case-insensitive — `netsuite` and `NETSUITE` both work. Only metadata
        for this source is touched.
      title: DeleteErpMetadataItemDtoErpSource
    DeleteErpMetadataItemDto:
      type: object
      properties:
        entityId:
          type: string
          description: >-
            Tabs id of the entity — a customer id when entityType is CUSTOMER,
            an invoice id when INVOICE, an invoice line item id when
            INVOICE_LINE_ITEM
        erpSource:
          $ref: '#/components/schemas/DeleteErpMetadataItemDtoErpSource'
          description: >-
            ERP source the metadata is stored under (e.g. NETSUITE).
            Case-insensitive — `netsuite` and `NETSUITE` both work. Only
            metadata for this source is touched.
        keys:
          type: array
          items:
            type: string
          description: >-
            Metadata keys to remove from the entity's stored ERP metadata for
            this source. Keys not present are ignored. Other keys are left
            as-is.
      required:
        - entityId
        - erpSource
        - keys
      title: DeleteErpMetadataItemDto
    DeleteErpMetadataDto:
      type: object
      properties:
        entityType:
          $ref: '#/components/schemas/DeleteErpMetadataDtoEntityType'
          description: >-
            The entity type for every item in this request. One request handles
            a single entity type.
        items:
          type: array
          items:
            $ref: '#/components/schemas/DeleteErpMetadataItemDto'
          description: The entities to remove metadata keys from, all of entityType.
      required:
        - entityType
        - items
      title: DeleteErpMetadataDto
    DeleteErpMetadataResultDtoErpSource:
      type: string
      enum:
        - QUICKBOOKS
        - ORDERTIME
        - NETSUITE
        - SALESFORCE
        - HUBSPOT
        - BACKEND
        - AVALARA
        - ORUM
        - ANROK
        - STRIPE
        - RILLET
        - SAGE_INTACCT
        - SLACK
        - SPHERE
        - CAMPFIRE
      description: ERP source the metadata is stored under.
      title: DeleteErpMetadataResultDtoErpSource
    DeleteErpMetadataResultDto:
      type: object
      properties:
        entityId:
          type: string
          description: Tabs id of the entity the keys were removed from.
        erpSource:
          $ref: '#/components/schemas/DeleteErpMetadataResultDtoErpSource'
          description: ERP source the metadata is stored under.
        removedKeys:
          type: array
          items:
            type: string
          description: >-
            Keys actually removed — the subset of requested keys that were
            present on the stored metadata.
        found:
          type: boolean
          description: >-
            Whether a stored metadata record existed for this entity and ERP
            source.
      required:
        - entityId
        - erpSource
        - removedKeys
        - found
      title: DeleteErpMetadataResultDto
    DeleteErpMetadataResponseDto:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DeleteErpMetadataResultDto'
      required:
        - items
      title: DeleteErpMetadataResponseDto
    IntegratorsApiErrorDetails:
      type: object
      properties: {}
      description: Additional details about the error
      title: IntegratorsApiErrorDetails
    IntegratorsApiError:
      type: object
      properties:
        code:
          type: number
          format: double
          description: API response code
        message:
          type: string
          description: API response message
        details:
          $ref: '#/components/schemas/IntegratorsApiErrorDetails'
          description: Additional details about the error
      required:
        - code
        - message
      title: IntegratorsApiError
    ERP Metadata_IntegratorsApiErpMetadataControllerV3_deleteErpMetadata_Response_200:
      type: object
      properties:
        payload:
          $ref: '#/components/schemas/DeleteErpMetadataResponseDto'
          description: Response payload, will be empty when success is false
        success:
          type: boolean
          description: Boolean with true=success, false=failure
        message:
          type: string
          description: Plain-text description of the result
        error:
          $ref: '#/components/schemas/IntegratorsApiError'
          description: json element with any error messages or warnings
      required:
        - payload
        - success
        - message
        - error
      title: >-
        ERP
        Metadata_IntegratorsApiErpMetadataControllerV3_deleteErpMetadata_Response_200
  securitySchemes:
    custom-header:
      type: apiKey
      in: header
      name: Authorization

```

## Examples



**Request**

```json
{
  "entityType": "CUSTOMER",
  "items": [
    {
      "entityId": "cust_987654321",
      "erpSource": "QUICKBOOKS",
      "keys": [
        "department",
        "division"
      ]
    }
  ]
}
```

**Response**

```json
{
  "payload": {
    "items": [
      {
        "entityId": "cust_987654321",
        "erpSource": "QUICKBOOKS",
        "removedKeys": [
          "department"
        ],
        "found": true
      }
    ]
  },
  "success": true,
  "message": "Metadata keys removed successfully.",
  "error": {
    "code": 0,
    "message": "",
    "details": {}
  }
}
```

**SDK Code**

```python
import requests

url = "https://integrators.prod.api.tabsplatform.com/v3/erp-metadata"

payload = {
    "entityType": "CUSTOMER",
    "items": [
        {
            "entityId": "cust_987654321",
            "erpSource": "QUICKBOOKS",
            "keys": ["department", "division"]
        }
    ]
}
headers = {
    "Authorization": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://integrators.prod.api.tabsplatform.com/v3/erp-metadata';
const options = {
  method: 'DELETE',
  headers: {Authorization: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"entityType":"CUSTOMER","items":[{"entityId":"cust_987654321","erpSource":"QUICKBOOKS","keys":["department","division"]}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://integrators.prod.api.tabsplatform.com/v3/erp-metadata"

	payload := strings.NewReader("{\n  \"entityType\": \"CUSTOMER\",\n  \"items\": [\n    {\n      \"entityId\": \"cust_987654321\",\n      \"erpSource\": \"QUICKBOOKS\",\n      \"keys\": [\n        \"department\",\n        \"division\"\n      ]\n    }\n  ]\n}")

	req, _ := http.NewRequest("DELETE", url, payload)

	req.Header.Add("Authorization", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://integrators.prod.api.tabsplatform.com/v3/erp-metadata")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"entityType\": \"CUSTOMER\",\n  \"items\": [\n    {\n      \"entityId\": \"cust_987654321\",\n      \"erpSource\": \"QUICKBOOKS\",\n      \"keys\": [\n        \"department\",\n        \"division\"\n      ]\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://integrators.prod.api.tabsplatform.com/v3/erp-metadata")
  .header("Authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"entityType\": \"CUSTOMER\",\n  \"items\": [\n    {\n      \"entityId\": \"cust_987654321\",\n      \"erpSource\": \"QUICKBOOKS\",\n      \"keys\": [\n        \"department\",\n        \"division\"\n      ]\n    }\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://integrators.prod.api.tabsplatform.com/v3/erp-metadata', [
  'body' => '{
  "entityType": "CUSTOMER",
  "items": [
    {
      "entityId": "cust_987654321",
      "erpSource": "QUICKBOOKS",
      "keys": [
        "department",
        "division"
      ]
    }
  ]
}',
  'headers' => [
    'Authorization' => '<apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://integrators.prod.api.tabsplatform.com/v3/erp-metadata");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"entityType\": \"CUSTOMER\",\n  \"items\": [\n    {\n      \"entityId\": \"cust_987654321\",\n      \"erpSource\": \"QUICKBOOKS\",\n      \"keys\": [\n        \"department\",\n        \"division\"\n      ]\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "entityType": "CUSTOMER",
  "items": [
    [
      "entityId": "cust_987654321",
      "erpSource": "QUICKBOOKS",
      "keys": ["department", "division"]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://integrators.prod.api.tabsplatform.com/v3/erp-metadata")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```