delete_term
Remove a term from a controlled vocabulary when it is not referenced by any catalog records. If the term is in use, the deletion fails with details on how many records reference it.
Instructions
Delete a term from a vocabulary.
The term must not be in use by any records in the catalog. If the term is referenced by other records (e.g., datasets using this type), the delete will fail with an error listing how many records reference it.
Args: vocabulary_name: Name of the vocabulary table (e.g., "Dataset_Type"). term_name: Name of the term to delete.
Returns: JSON with status, vocabulary, and deleted term name.
Example: delete_term("Dataset_Type", "Obsolete") -> {"status": "deleted", ...}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term_name | Yes | ||
| vocabulary_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |