Reddit deletes

To process all delete messages in the same way you can use the following CSDL:

interaction.type == "reddit" AND interaction.subtype == "delete"

There are different types of deletes. Within your systems you can handle them in the same way and remove the related post, but should you wish to handle them separately, they are listed below with example CSDL.

Delete Type - Deleted

The user has deleted the body text of their own message. These types of delete interactions are identified using reddit.action == "deleted"

{
  "deleted": true,
  "interaction": {
    "author": {
      "link": "https://www.reddit.com/user/sau1_abcde",
      "name": "sau1_abcde",
      "username": "sau1_abcde"
    },
    "id": "2418f45c63fd5fd1b7cb6e14f39aaaa",
    "link": "https://www.reddit.com/r/hockey/comments/aaaaa/game_thread_san_jose_sharks_aaaaa_at_winnipeg/eieiol1/#",
    "subsubtype": "post",
    "subtype": "delete",
    "type": "reddit"
  },
  "reddit": {
    "action": "deleted",
    "author": {
      "link": "https://www.reddit.com/user/sau1_abcde",
      "name": "sau1_abcde",
      "username": "sau1_abcde"
    },
    "boardname": "hockey",
    "created_at": "Wed, 13 Mar 2019 08:35:00 +0000",
    "forumid": "ddddd",
    "forumurl": "https://www.reddit.com/r/hockey",
    "id": "2418f45c63fd5fd1b7cb6e14f39aaaaa",
    "link": "https://www.reddit.com/r/hockey/comments/aaaaa/game_thread_san_jose_sharks_aaaaa_at_winnipeg/eieiol1/#",
    "parentid": "bbbbb",
    "sitepostid": "cccccc",
    "subtype": "post",
    "threadid": "bbbbbb",
    "type": "delete"
  },
  "compliance_type": "delete"
}

The above example is a full fidelity deleted interaction, in some cases we aren't able to provide this level of detail. These less detailed deleted interactions will look like the following.

{
  "deleted": true,
  "interaction": {
    "author": {
      "name": null,
      "username": null
    },
    "id": "192e4bc93da15ee8b1301faf30898102",
    "subsubtype": "post",
    "subtype": "delete",
    "type": "reddit"
  },
  "reddit": {
    "action": "deleted",
    "author": {
      "name": null,
      "username": null
    },
    "created_at": "Tue, 28 May 2019 18:32:09 +0000",
    "id": "192e4bc93da15ee8b1301faf30898102",
    "sitepostid": "aaaaaaa",
    "subtype": "post",
    "type": "delete"
  },
  "compliance_type": "delete"
}

Delete Type - Gone

Reddit moderators have removed the message. These types of delete interactions are identified using reddit.action == "gone"

{
  "deleted": true,
  "interaction": {
    "author": {
      "link": "https://www.reddit.com/user/abcdef",
      "name": "abcdef",
      "username": "abcdef"
    },
    "id": "d737c37aab2851a0b832791bb6351dfc",
    "link": "https://www.reddit.com/r/abcdef/comments/abcdef/toronto_maple_leafs_vs_vancouver_canucks_live/ehynj0p/#",
    "subsubtype": "post",
    "subtype": "delete",
    "type": "reddit"
  },
  "reddit": {
    "action": "gone",
    "author": {
      "link": "https://www.reddit.com/user/abcdef",
      "name": "abcdef",
      "username": "abcdef"
   },
    "boardname": "ccccc",
    "created_at": "Wed, 13 Mar 2019 08:26:27 +0000",
    "forumid": "w5wgd",
    "forumurl": "https://www.reddit.com/r/Htvfree",
    "id": "d737c37aab2851a0b832791bb63abcdef",
    "link": "https://www.reddit.com/r/Htvfabcdefree/comments/abcdef/toronto_maple_leafs_vs_vancouver_canucks_live/ehynj0p/#",
    "parentid": "abcdef",
    "sitepostid": "bbbbb",
    "subtype": "post",
    "threadid": "abcdef",
    "type": "delete"
  },
  "compliance_type": "delete"
}

Delete Type - Banned

Reddit moderators have removed the message and the user from the subreddit. These types of delete interactions are identified using reddit.action == "banned"

{
  "deleted": true,
  "interaction": {
    "author": {
      "link": "https://www.reddit.com/user/abcdef",
      "name": "abcdef",
      "username": "abcdef"
    },
    "id": "de5a4f76e8925a64bb11fce11847fbd0",
    "link": "https://www.reddit.com/r/abcdef/comments/abcdef/best_location_to_get_car_registered/eieipv9/#",
    "subsubtype": "post",
    "subtype": "delete",
    "type": "reddit"
  },
  "reddit": {
    "action": "banned",
    "author": {
      "link": "https://www.reddit.com/user/abcdef",
      "name": "abcdef",
      "username": "abcdef"
    },
    "boardname": "houston",
    "created_at": "Wed, 13 Mar 2019 08:35:23 +0000",
    "forumid": "asdfer",
    "forumurl": "https://www.reddit.com/r/houston",
    "id": "de5a4f76e8925a64bb11fce11847fbd0",
    "link": "https://www.reddit.com/r/abcdef/comments/abcdef/best_location_to_get_car_registered/eieipv9/#",
    "parentid": "abcdef",
    "sitepostid": "ddddd",
    "subtype": "post",
    "threadid": "bbbbbb",
    "type": "delete"
  },
  "compliance_type": "delete"
}