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

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

# Delete a Glossary Term

Delete a glossary term 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 term to delete.

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

Recursively delete child glossary terms.

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

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

## Delete by Name

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

**fqn** `string` *required*

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

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

Recursively delete child glossary terms.

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

Permanently delete the glossary term.

## Restore a Soft-Deleted Glossary Term

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

**id** `string` *required*

UUID of the soft-deleted glossary term to restore.

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

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

# Soft delete by ID
GlossaryTerms.delete("d3a50b09-g258-7h57-defg-42g1d5517ed4")

# Hard delete
GlossaryTerms.delete(
    "d3a50b09-g258-7h57-defg-42g1d5517ed4",
    hard_delete=True
)

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

# Restore a soft-deleted glossary term
GlossaryTerms.restore("d3a50b09-g258-7h57-defg-42g1d5517ed4")
```

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

// client is an initialized OpenMetadataClient.
var id = "d3a50b09-g258-7h57-defg-42g1d5517ed4";

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

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

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

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

```bash DELETE /v1/glossaryTerms/{id} theme={null}
# Soft delete by ID
curl -X DELETE "{base_url}/api/v1/glossaryTerms/d3a50b09-g258-7h57-defg-42g1d5517ed4" \
  -H "Authorization: Bearer {access_token}"

# Hard delete
curl -X DELETE "{base_url}/api/v1/glossaryTerms/d3a50b09-g258-7h57-defg-42g1d5517ed4?hardDelete=true" \
  -H "Authorization: Bearer {access_token}"

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

# Restore soft-deleted glossary term
curl -X PUT "{base_url}/api/v1/glossaryTerms/restore" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{"id": "d3a50b09-g258-7h57-defg-42g1d5517ed4"}'
```

```json Response (Soft Delete) theme={null}
{
  "id": "d3a50b09-g258-7h57-defg-42g1d5517ed4",
  "name": "Revenue",
  "fullyQualifiedName": "BusinessGlossary.Revenue",
  "description": "Total income generated from business operations",
  "synonyms": ["Income", "Earnings", "Sales"],
  "glossary": {
    "id": "c2940a98-f147-6g46-cdef-31f0c4406dc3",
    "type": "glossary",
    "name": "BusinessGlossary",
    "fullyQualifiedName": "BusinessGlossary"
  },
  "version": 0.2,
  "updatedAt": 1769984330261,
  "updatedBy": "admin",
  "deleted": true,
  "owners": [],
  "tags": [],
  "children": []
}
```

***

## Returns

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

***

## Error Handling

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


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