# Reconciling ActivityPub Deletes with NodeBB deletion

**URL:** <https://socialhub.activitypub.rocks/t/reconciling-activitypub-deletes-with-nodebb-deletion/4221>\
**Category:** NodeBB\
**Created:** [May 8, 2024, 2:10pm UTC](https://socialhub.activitypub.rocks/t/reconciling-activitypub-deletes-with-nodebb-deletion/4221 "2024-05-08T14:10:08Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![angus](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/angus/32/2295_2.png) [@angus](https://socialhub.activitypub.rocks/u/angus)\
**Post date:** [April 15, 2025, 8:09am UTC](https://socialhub.activitypub.rocks/t/reconciling-activitypub-deletes-with-nodebb-deletion/4221/12 "2025-04-15T08:09:53Z")

</div>

tbh the more I think about this, the more it feels like federating `Update(Tombstone)` is never going to work very well.

We’d first have to win the argument that federating Tombstones make sense at all. I found the arguments to the contrary relatively persuasive on that front (I know you’re aware of this, but just giving context for other folks reading this):

> [@The Delete Activity And It's Misconceptions](https://socialhub.activitypub.rocks/t/the-delete-activity-and-its-misconceptions/137):
>
> Instead of using my personal blog, I’m going to just start writing about ActivityPub here instead, as I think it is more useful to have a central repository of all knowledge relating to ActivityPub that is easily searchable. Today, I want to talk about the Delete activity. When talking to people who want to learn ActivityPub or auditing codebases or whatever, people are frequently confused about how the Delete activity actually works and how it should be implemented. Hopefully after reading t…

I wonder if we can’t just do point 6 on your list:

> If we receive a `Delete(Note)` (or Article, or Question, etc.) we will not delete it immediately. Instead, as kaniini advises, we will attempt to retrieve the object from the origin:
> 
> - If we see an `as:Tombstone`, we will delete the post (soft delete)
> - If we encounter a 404 or 410, we will purge the post (hard delete)

So to play that out:

**Publisher**  
Post is deleted

1. On soft delete:
  - Convert `(Note|Article)` to `Tombstone`
  - Federate `Delete(Note|Article)`

2. On hard delete:
  - Delete `(Note|Article)`
  - Federate `Delete(Note|Article)`

**Receiver**  
Receives `Delete(Note|Article)`

1. Remote `(Note|Article)` returns `Tombstone`
  - Convert `(Note|Article)` to `Tombstone`
  - Soft-delete associated post.

2. Remote `(Note|Article)` returns 404 (or 410)
  - Delete `(Note|Article)`
  - Hard-delete associated post.

---

_[View the full topic](https://socialhub.activitypub.rocks/t/reconciling-activitypub-deletes-with-nodebb-deletion/4221)._
