Skip to content

Delete options (enumerations)

1.3.3 1.0.0

To delete options (enumeration):

Delete custom metadata structure
1
EnumDef.purge("DataQualityDimensions"); // (1)
  1. You only need to call the CustomMetadataDef.purge() method with the human-readable name of the enumeration, and it will be deleted.
Delete custom metadata structure
1
2
3
4
5
from pyatlan.model.typedef import EnumDef
from pyatlan.client.atlan import AtlanClient

client = AtlanClient()
client.typedef.purge("DataQualityDimensions", EnumDef) # (1)
  1. You only need to call the CustomMetadataDef.purge() method with the human-readable name of the enumeration, and it will be deleted.
DELETE /api/meta/types/typedef/name/DataQualityDimensions
1

Options (enumerations) do not have a hashed-string representation

Note that unlike a custom metadata structure, options (enumerations) do not have a hashed-string name. Therefore, use their human-readable name when deleting.

URL-encoding

However, since this name is embedded in the URL for deletion, it does need to be url-encoded. For example, if the name contains spaces these need to be replaced with %20.