> ## 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 Classification

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

# Delete a Classification

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

## Delete by ID

**id** `string` *required*

UUID of the classification to delete.

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

Recursively delete all tags within this classification.

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

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

## Delete by Name

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

**fqn** `string` *required*

Fully qualified name of the classification, for example `Certification`.

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

Recursively delete all tags.

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

Permanently delete the classification.

## Restore a Soft-Deleted Classification

Use `PUT /v1/classifications/restore` to restore a soft-deleted classification.

**id** `string` *required*

UUID of the soft-deleted classification to restore.

```python DELETE /v1/classifications/{id} theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import Classifications

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

# Soft delete by ID
Classifications.delete("06d90883-6be9-4f7e-9475-753f10a95e94")

# Hard delete
Classifications.delete(
    "06d90883-6be9-4f7e-9475-753f10a95e94",
    hard_delete=True
)

# Delete by name
Classifications.delete(Classifications.retrieve_by_name("Certification").id)

# Restore a soft-deleted classification
Classifications.restore("06d90883-6be9-4f7e-9475-753f10a95e94")
```

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

// client is an initialized OpenMetadataClient.
var id = "06d90883-6be9-4f7e-9475-753f10a95e94";

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

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

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

// Delete by name: look up the ID first
var classification = client.classifications().getByName("Certification");
client.classifications().delete(classification.getId().toString());
```

```bash DELETE /v1/classifications/{id} theme={null}
# Soft delete by ID
curl -X DELETE "{base_url}/api/v1/classifications/06d90883-6be9-4f7e-9475-753f10a95e94" \
  -H "Authorization: Bearer {access_token}"

# Hard delete
curl -X DELETE "{base_url}/api/v1/classifications/06d90883-6be9-4f7e-9475-753f10a95e94?hardDelete=true" \
  -H "Authorization: Bearer {access_token}"

# Delete by name
curl -X DELETE "{base_url}/api/v1/classifications/name/Certification" \
  -H "Authorization: Bearer {access_token}"

# Restore soft-deleted classification
curl -X PUT "{base_url}/api/v1/classifications/restore" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{"id": "06d90883-6be9-4f7e-9475-753f10a95e94"}'
```

```json Response (Soft Delete) theme={null}
{
  "id": "06d90883-6be9-4f7e-9475-753f10a95e94",
  "name": "Certification",
  "fullyQualifiedName": "Certification",
  "description": "Certifying Data Asset will provide the users with a clear idea of...",
  "version": 0.2,
  "updatedAt": 1769982619610,
  "updatedBy": "admin",
  "deleted": true,
  "owners": [],
  "provider": "system",
  "mutuallyExclusive": true
}
```

***

## Returns

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

***

## Error Handling

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


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