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

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

# Delete a Glossary

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

## Delete by ID

**id** `string` *required*

UUID of the glossary to delete.

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

Recursively delete all glossary terms within this glossary.

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

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

## Delete by Name

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

**fqn** `string` *required*

Fully qualified name of the glossary, for example `BusinessGlossary`.

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

Recursively delete all glossary terms.

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

Permanently delete the glossary.

## Restore a Soft-Deleted Glossary

Use `PUT /v1/glossaries/restore` to restore a soft-deleted glossary.

**id** `string` *required*

UUID of the soft-deleted glossary to restore.

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

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

# Soft delete by ID
Glossaries.delete("c2940a98-f147-6g46-cdef-31f0c4406dc3")

# Hard delete
Glossaries.delete(
    "c2940a98-f147-6g46-cdef-31f0c4406dc3",
    hard_delete=True
)

# Delete by name
Glossaries.delete(Glossaries.retrieve_by_name("BusinessGlossary").id)

# Restore a soft-deleted glossary
Glossaries.restore("c2940a98-f147-6g46-cdef-31f0c4406dc3")
```

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

// client is an initialized OpenMetadataClient.
var id = "c2940a98-f147-6g46-cdef-31f0c4406dc3";

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

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

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

// Delete by name: look up the ID first
var glossary = client.glossaries().getByName("BusinessGlossary");
client.glossaries().delete(glossary.getId().toString());
```

```bash DELETE /v1/glossaries/{id} theme={null}
# Soft delete by ID
curl -X DELETE "{base_url}/api/v1/glossaries/c2940a98-f147-6g46-cdef-31f0c4406dc3" \
  -H "Authorization: Bearer {access_token}"

# Hard delete
curl -X DELETE "{base_url}/api/v1/glossaries/c2940a98-f147-6g46-cdef-31f0c4406dc3?hardDelete=true" \
  -H "Authorization: Bearer {access_token}"

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

# Restore soft-deleted glossary
curl -X PUT "{base_url}/api/v1/glossaries/restore" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{"id": "c2940a98-f147-6g46-cdef-31f0c4406dc3"}'
```

```json Response (Soft Delete) theme={null}
{
  "id": "c2940a98-f147-6g46-cdef-31f0c4406dc3",
  "name": "BusinessGlossary",
  "fullyQualifiedName": "BusinessGlossary",
  "description": "Standard business terminology for the organization",
  "version": 0.2,
  "updatedAt": 1769984330261,
  "updatedBy": "admin",
  "deleted": true,
  "owners": [],
  "reviewers": [],
  "tags": [],
  "mutuallyExclusive": false
}
```

***

## Returns

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

***

## Error Handling

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


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