Atlas deleting one attributeDefs from entityDefs

Viewed 13

The only information i have find about deleting one attribute in an entitydef is to delete the whole entityDefs, and then make it again, but for that you need to delete all the entities int Atlas. The thing is i have more than 1 million entities to delete.... is there any way to delete one attribute in an entitydef ?

 refresh_process_type = EntityTypeDef(
        name=name,
        description=name,
        superTypes=["Process"],
        typeVersion="1.0",
    )

    refresh_process_type.addAttributeDef(
        AtlasAttributeDef(
            name="SourceString",
            typeName="array<string>",
            isOptional=True,
            cardinality="SINGLE",
            isUnique=False,
            isIndexable=False,
            includeInNotification=False,
        ),
        AtlasAttributeDef(name="lastScanDate",
                          typeName="string",
                          isOptional=True,
                          cardinality="SINGLE",
                          isUnique=False, isIndexable=False,
                          includeInNotification=False
                          ),
    )

    self.client.upload_typedefs(
        entityDefs=[refresh_process_type], force_update=True
    )

I want to delete lastScanDate attribute, or turn it typeName into "int".

the self.client is from pyapacheatlas.core import PurviewClient and use Atlas API.

Thank for your answer.

0 Answers
Related