> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a Test Suite

> Delete a test suite by ID or name, with soft/hard delete options

# Delete a Test Suite

Delete a test suite by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.

## Delete by ID

**id** `string` *required*

UUID of the test suite to delete.

**recursive** `boolean` (default: false)

Recursively delete child entities (test cases within the suite).

**hardDelete** `boolean` (default: false)

Permanently delete the test suite. If `false`, the test suite is soft-deleted and can be restored.

## Delete by Name

Use `DELETE /v1/dataQuality/testSuites/name/{fqn}` to delete by fully qualified name.

**fqn** `string` *required*

Fully qualified name of the test suite.

**recursive** `boolean` (default: false)

Recursively delete child entities.

**hardDelete** `boolean` (default: false)

Permanently delete the test suite.

## Restore a Soft-Deleted Test Suite

Use `PUT /v1/dataQuality/testSuites/restore` to restore a soft-deleted test suite.

**id** `string` *required*

UUID of the soft-deleted test suite to restore.

```python DELETE /v1/dataQuality/testSuites/{id} theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import TestSuites

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

# Soft delete by ID
TestSuites.delete("e86a9a11-852f-4bac-b5a7-993b2bbbb572")

# Hard delete
TestSuites.delete(
    "e86a9a11-852f-4bac-b5a7-993b2bbbb572",
    hard_delete=True
)

# Delete by name
TestSuites.delete(TestSuites.retrieve_by_name("sample_data.ecommerce_db.shopify.dim_address.testSuite").id)

# Restore a soft-deleted test suite
TestSuites.restore("e86a9a11-852f-4bac-b5a7-993b2bbbb572")
```

```java DELETE /v1/dataQuality/testSuites/{id} theme={null}
import java.util.Map;

// client is an initialized OpenMetadataClient.
var id = "e86a9a11-852f-4bac-b5a7-993b2bbbb572";

// Soft delete
client.testSuites().delete(id);

// Restore
client.testSuites().restore(id);

// Hard delete
client.testSuites().delete(id, Map.of("hardDelete", "true"));

// Delete by name: look up the ID first
var testSuite = client.testSuites().getByName("sample_data.ecommerce_db.shopify.dim_address.testSuite");
client.testSuites().delete(testSuite.getId().toString());
```

```bash DELETE /v1/dataQuality/testSuites/{id} theme={null}
# Soft delete by ID
curl -X DELETE "{base_url}/api/v1/dataQuality/testSuites/e86a9a11-852f-4bac-b5a7-993b2bbbb572" \
  -H "Authorization: Bearer {access_token}"

# Hard delete
curl -X DELETE "{base_url}/api/v1/dataQuality/testSuites/e86a9a11-852f-4bac-b5a7-993b2bbbb572?hardDelete=true" \
  -H "Authorization: Bearer {access_token}"

# Delete by name
curl -X DELETE "{base_url}/api/v1/dataQuality/testSuites/name/sample_data.ecommerce_db.shopify.dim_address.testSuite" \
  -H "Authorization: Bearer {access_token}"

# Restore soft-deleted test suite
curl -X PUT "{base_url}/api/v1/dataQuality/testSuites/restore" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{"id": "e86a9a11-852f-4bac-b5a7-993b2bbbb572"}'
```

```json Response (Soft Delete) theme={null}
{
  "id": "e86a9a11-852f-4bac-b5a7-993b2bbbb572",
  "name": "sample_data.ecommerce_db.shopify.dim_address.testSuite",
  "displayName": "Data Contract - dim_address_comprehensive_contract",
  "fullyQualifiedName": "sample_data.ecommerce_db.shopify.dim_address.testSuite",
  "version": 0.2,
  "updatedAt": 1769982800000,
  "updatedBy": "admin",
  "deleted": true,
  "owners": [],
  "basic": true
}
```

***

## Returns

Soft delete returns the test suite object with `deleted: true`. Hard delete returns no content (204). Restore returns the restored test suite object.

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to delete this test suite |
| `404` | `NOT_FOUND` | Test suite with given ID or FQN does not exist |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.