Skip to content

ENTITY_DELETE event type

ENTITY_DELETE events are emitted whenever an asset is deleted in Atlan. This includes:

  • Soft deletion, or archival of an asset.
  • Hard deletion, or purging of an asset.
One ENTITY_DELETE event is emitted for each asset that is deleted

So, for example, if you run the connection delete utility to remove a connection with:

  • 3 databases
  • 10 schemas
  • 500 tables
  • 15,000 columns

Atlan will emit 15,514 ENTITY_DELETE events — one for each of these assets (and the connection itself).

The details of the deleted asset will be in the message.entity portion of the event payload. The message.entity.deleteHandler will indicate the kind of delete:

  • DEFAULT is an archival
  • HARD is a purge
Example ENTITY_DELETE event
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  "source": {},
  "version": {
    "version": "1.0.0",
    "versionParts": [
      1
    ]
  },
  "msgCompressionKind": "NONE",
  "msgSplitIdx": 1,
  "msgSplitCount": 1,
  "msgSourceIP": "10.121.193.228",
  "msgCreatedBy": "",
  "msgCreationTime": 1667822854307,
  "spooled": false,
  "message": {
    "type": "ENTITY_NOTIFICATION_V2",
    "entity": {
      "typeName": "Connection",
      "attributes": {
        "qualifiedName": "default/bigquery/1665130698"
      },
      "guid": "ff9d053f-5bd8-4149-81d3-447ba654dbaa",
      "status": "DELETED",
      "displayText": "default/bigquery/1665130698",
      "isIncomplete": false,
      "createdBy": "autoqa",
      "updatedBy": "autoqa",
      "createTime": 1665131016428,
      "updateTime": 1665131016428,
      "deleteHandler": "HARD"
    },
    "operationType": "ENTITY_DELETE",
    "eventTime": 1667822854152
  }
}