---
title: "zone.object-zone-delete-query@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/zone.object-zone-delete-query"
updated: null
---

# zone.object-zone-delete-query@1 · OpenVibe.Services

HTML: [zone.object-zone-delete-query@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/zone.object-zone-delete-query)

# ObjectZoneDeleteQuery `zone.object-zone-delete-query@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: zone
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-031](/docs/adr/ADR-031)
- Schema: [`https://openvibe.network/contracts/zone/object-zone-delete-query.v1.json`](/docs/contracts/zone.object-zone-delete-query.json)

zone.object-zone-delete-query@1 (ADR-031 amendment 2026-10-02): the query string of DELETE /api/v1/zones/{zone\_id} on OpenVibe.Zone (capability zone.zone.delete). The answer is 202 with the zone.object-zone@1 in state deleting. Without recursive=true, a zone that still holds live objects answers 409 zone.not\_empty. A zone with an object under a retention hold answers 409 zone.held, as media.object.delete refuses a held object. The default zone always answers 409 zone.default. Deletion goes through Media's one deletion path: every object is tombstoned at once, with no restore window, and every copy is erased within 24 hours. A hold placed after the request delays only that object's purge. The zone's name is retired: no later zone of the environment can take it.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `recursive` | enum |  | Delete the zone's objects too. Default false. | - `one of true, false, "true", "false"` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: none

~~~~
{}
~~~~

Valid: recursive

~~~~
{
  "recursive": "true"
}
~~~~

Rejected: force

~~~~
{
  "force": "true"
}
~~~~

Rejected: recursive-yes

~~~~
{
  "recursive": "yes"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('zone.object-zone-delete-query@1', value);   // { valid, errors: [{ path, message }] }
~~~~
