---
title: "Delete Object Schema Relationship"
description: "How to call Delete Object Schema Relationship (DELETE /api/object-schemas/{id}/relationships/object-schemas) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/delete_object_schema_relationship"
revision: "2026-10-15"
operationId: "delete_object_schema_relationship"
aliases: ["delete_object_schema_relationships_schemas","remove_schemas_from_object_schema"]
method: "DELETE"
endpoint: "https://a.klaviyo.com/api/object-schemas/{id}/relationships/object-schemas"
authentication: "privateKey"
scopes: ["custom-objects:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/delete_object_schema_relationship.json"
related: ["https://developers.klaviyo.com/en/reference/custom-objects/llms.txt","https://developers.klaviyo.com/en/reference/get_object_schema.md","https://developers.klaviyo.com/en/reference/create_object_schema.md","https://developers.klaviyo.com/en/reference/update_object_schema.md","https://developers.klaviyo.com/en/reference/get_source_mapping_for_object_schema.md","https://developers.klaviyo.com/en/reference/get_source_mapping_id_for_object_schema.md","https://developers.klaviyo.com/en/reference/get_object_schema_relationships.md","https://developers.klaviyo.com/en/reference/create_object_schema_relationship.md","https://developers.klaviyo.com/en/reference/update_object_schema_relationship.md","https://developers.klaviyo.com/en/reference/get_profile_schema_relationships.md","https://developers.klaviyo.com/en/reference/create_profile_schema_relationship.md","https://developers.klaviyo.com/en/reference/update_profile_schema_relationship.md","https://developers.klaviyo.com/en/reference/delete_profile_schema_relationship.md"]
---

# Delete Object Schema Relationship

> This is the Markdown version of https://developers.klaviyo.com/en/reference/delete_object_schema_relationship

```http
DELETE https://a.klaviyo.com/api/object-schemas/{id}/relationships/object-schemas
```

Delete a relationship between object schemas

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `custom-objects:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/delete_object_schema_relationship.json)

## Example request

### curl

```bash
curl --request DELETE \
     --url 'https://a.klaviyo.com/api/object-schemas/01K61DKJ7EKJ0ES9VE456XF5JG/relationships/object-schemas' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": [
    {
      "type": "object-schema",
      "id": "01K5YKKQKM819VVGCPZZKGE6D4"
    }
  ]
}'
```

### CLI

```bash
klaviyo custom-objects delete-object-schema-relationship 01K61DKJ7EKJ0ES9VE456XF5JG \
  -d '{
  "data": [
    {
      "type": "object-schema",
      "id": "01K5YKKQKM819VVGCPZZKGE6D4"
    }
  ]
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Custom_Objects.delete_object_schema_relationship(
    "01K61DKJ7EKJ0ES9VE456XF5JG",
    {
        "data": [
            {
                "type": "object-schema",
                "id": "01K5YKKQKM819VVGCPZZKGE6D4",
            },
        ],
    },
)
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, CustomObjectsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const customObjectsApi = new CustomObjectsApi(session)

const response = await customObjectsApi.deleteObjectSchemaRelationship(
  '01K61DKJ7EKJ0ES9VE456XF5JG',
  {
    data: [
      {
        type: 'object-schema',
        id: '01K5YKKQKM819VVGCPZZKGE6D4',
      },
    ],
  },
)
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::CustomObjects.delete_object_schema_relationship(
  '01K61DKJ7EKJ0ES9VE456XF5JG',
  {
    data: [
      {
        type: 'object-schema',
        id: '01K5YKKQKM819VVGCPZZKGE6D4',
      },
    ],
  },
)
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

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

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->CustomObjects->deleteObjectSchemaRelationship(
    '01K61DKJ7EKJ0ES9VE456XF5JG',
    [
        'data' => [
            [
                'type' => 'object-schema',
                'id' => '01K5YKKQKM819VVGCPZZKGE6D4',
            ],
        ],
    ],
);
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Path parameters

- `id` (string, required): The ULID ID of the object schema. Example: `01K61DKJ7EKJ0ES9VE456XF5JG`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object[], required)
  - `type` (string, required): Allowed values: `object-schema`
  - `id` (string, required): The ULID ID of the related object schema. Example: `01K5YKKQKM819VVGCPZZKGE6D4`
  - `meta` (object)
    - `relationship_id` (string, required): The ULID ID of the relationship. Example: `01K5YKKQKM819VVGCPZZKGE6D4`

### Example request body

```json
{
  "data": [
    {
      "type": "object-schema",
      "id": "01K5YKKQKM819VVGCPZZKGE6D4"
    }
  ]
}
```

## Responses

### 204: Success

This response has no body.

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
