## Archive a custom object definition

**delete** `/v1/objects/{entitySlug}`

> [!WARNING]
This endpoint is in beta and isn't available to every workspace yet. Its parameters and response schemas may change, including breaking changes.

Archives a custom object definition and its active lists while retaining its records. Returns 409 if dependencies prevent archival; resolve them in the Lightfield app. Restoring the definition does not restore its lists.

**[Required scope](/using-the-api/scopes/):** `config:delete`

**[Rate limit category](/using-the-api/rate-limits/):** Write

### Path Parameters

- `entitySlug: string`

  Slug of the custom object definition to archive.

### Body Parameters

- `body: optional object {  }`

### Returns

- `ObjectArchiveTypeResponse object { id, archived, archivedAt, 7 more }`

  - `id: string`

    Stable public ID of the custom object definition.

  - `archived: boolean`

    Whether this custom object type is archived.

  - `archivedAt: string`

    ISO 8601 archive timestamp, or null when active.

  - `createdAt: string`

    ISO 8601 creation timestamp.

  - `description: string`

    Description of the custom object type, or null.

  - `icon: string`

    Display icon, or null when no icon is configured.

  - `labelPlural: string`

    Plural display label, or null.

  - `labelSingular: string`

    Singular display label.

  - `slug: string`

    Custom object slug used in API paths.

  - `updatedAt: string`

    ISO 8601 last-update timestamp.

### Example

```http
curl https://api.lightfield.app/v1/objects/$ENTITY_SLUG \
    -X DELETE \
    -H 'Lightfield-Version: 2026-03-01' \
    -H "Authorization: Bearer $API_KEY"
```

#### Response

```json
{
  "id": "id",
  "archived": true,
  "archivedAt": "archivedAt",
  "createdAt": "createdAt",
  "description": "description",
  "icon": "icon",
  "labelPlural": "labelPlural",
  "labelSingular": "labelSingular",
  "slug": "slug",
  "updatedAt": "updatedAt"
}
```
