Entity - Bulk Delete

Delete a list of entities in bulk identified by their GUIDs or unique attributes.

DELETE {endpoint}/datamap/api/atlas/v2/entity/bulk?guid={guid}

URI Parameters

Name In Required Type Description
endpoint
path True

string

guid
query True

string[]

An array of GUIDs of entities to delete.

Responses

Name Type Description
200 OK

EntityMutationResult

The request has succeeded.

Other Status Codes

AtlasErrorResponse

An unexpected error response.

Security

OAuth2Auth

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
https://purview.azure.net/.default

Examples

Entity_BulkDelete

Sample Request

DELETE {endpoint}/datamap/api/atlas/v2/entity/bulk?guid=18e06957-e265-967a-07f1-e14e2ab8940f&guid=cc0730ba-9b30-41f0-6953-559d17626d2b

Sample Response

{
  "mutatedEntities": {
    "DELETE": [
      {
        "typeName": "azure_blob_container",
        "attributes": {
          "qualifiedName": "https://exampleaccount.blob.core.windows.net/examplecontainer"
        },
        "guid": "18e06957-e265-967a-07f1-e14e2ab8940f",
        "status": "ACTIVE"
      },
      {
        "typeName": "azure_blob_container",
        "attributes": {
          "qualifiedName": "https://exampleaccount.blob.core.windows.net/examplecontainer2"
        },
        "guid": "cc0730ba-9b30-41f0-6953-559d17626d2b",
        "status": "ACTIVE"
      }
    ]
  }
}

Definitions

Name Description
AtlasClassification

An instance of a classification; it doesn't have an identity, this object exists only when associated with an entity.

AtlasEntityHeader

An instance of an entity - like hive_table, hive_database.

AtlasErrorResponse

An error response from the service

AtlasTermAssignmentHeader

The header for term assignment.

AtlasTermAssignmentStatus

Status for term assignment

EntityMutationResult

The mutation response result of entity.

EntityStatus

Status - can be active or deleted

TimeBoundary

Captures time-boundary details

AtlasClassification

An instance of a classification; it doesn't have an identity, this object exists only when associated with an entity.

Name Type Description
attributes

The attributes of the struct.

entityGuid

string

The GUID of the entity.

entityStatus

EntityStatus

Status of the entity - can be active or deleted. Deleted entities are not removed.

lastModifiedTS

string

ETag for concurrency control.

removePropagationsOnEntityDelete

boolean

Determines if propagations will be removed on entity deletion.

typeName

string

The name of the type.

validityPeriods

TimeBoundary[]

An array of time boundaries indicating validity periods.

AtlasEntityHeader

An instance of an entity - like hive_table, hive_database.

Name Type Description
attributes

The attributes of the struct.

classificationNames

string[]

An array of classification names.

classifications

AtlasClassification[]

An array of classifications.

displayText

string

The display text.

guid

string

The GUID of the record.

isIncomplete

boolean

Whether it is a shell entity

labels

string[]

labels

lastModifiedTS

string

ETag for concurrency control.

meaningNames

string[]

An array of meanings.

meanings

AtlasTermAssignmentHeader[]

An array of term assignment headers.

status

EntityStatus

Status of the entity - can be active or deleted. Deleted entities are not removed.

typeName

string

The name of the type.

AtlasErrorResponse

An error response from the service

Name Type Description
errorCode

string

The error code.

errorMessage

string

The error message.

requestId

string

The request ID.

AtlasTermAssignmentHeader

The header for term assignment.

Name Type Description
confidence

integer

The confidence of the term assignment.

createdBy

string

The user who created the record.

description

string

The description of the term assignment.

displayText

string

The display text.

expression

string

The expression of the term assignment.

relationGuid

string

The GUID of the relationship.

status

AtlasTermAssignmentStatus

The status of terms assignment.

steward

string

The steward of the term.

termGuid

string

The GUID of the term.

AtlasTermAssignmentStatus

Status for term assignment

Name Type Description
DEPRECATED

string

The status is deprecated.

DISCOVERED

string

The status is discovered.

IMPORTED

string

The status is imported.

OBSOLETE

string

The status is obsolete.

OTHER

string

Other status.

PROPOSED

string

The status is proposed.

VALIDATED

string

The status is validated.

EntityMutationResult

The mutation response result of entity.

Name Type Description
guidAssignments

object

A map of GUID assignments with entities.

mutatedEntities

object

The entity headers of mutated entities.

partialUpdatedEntities

AtlasEntityHeader[]

An array of entity headers that partially updated.

EntityStatus

Status - can be active or deleted

Name Type Description
ACTIVE

string

The status is active.

DELETED

string

The status is deleted.

TimeBoundary

Captures time-boundary details

Name Type Description
endTime

string

The end of the time boundary.

startTime

string

The start of the time boundary.

timeZone

string

The timezone of the time boundary.